Setup a simple local HTTP server quickly

Web Server for Chrome is an extension for Chrome which serves web pages from a local folder over the network, using HTTP. It runs anywhere that you have Chrome installed, Windows PC, Mac , Linux, it even works on ARM chromebooks. If you want to test a website locally on your computer, you can add this extension to your Google Chrome browser, then put all site files to a folder on your hard disk. Install this Chrome extension, map this folder as the web server root directory. Then access site or files from Chrome browser by visiting the local web server URL. Check out details below.

web server for chrome icon

About Web server for Chrome

  • serve local files
  • configure listening port
  • configure listening interface (e.g. localhost or all interfaces)
  • custom http handlers possible
  • websocket support available
  • works nice with chrome.runtime.onSuspend
  • options for autostart, start in background, etc etc.
  • handles range requests, HEAD, etc
  • options for CORS
  • optional PUT, DELETE request (for upload files)
  • sets MIME types
  • can render directory listing

Get this web server extension for Chrome from Chrome web store here.

How to setup local HTTP server?

Open Chrome browser on your PC or Mac. Then add the Web Server app to your Chrome from previous linked page.

Start Web Server app from Windows Settings > Chrome Apps > Web Server for Chrome. Or visit chrome://apps/ from Chrome browser, then find and click to launch the Web Server.

Click Choose Folder to select the website folder on your hard drive as the site root directory. Click the Web Server toggle to turn it on if the status is Stopped. Then visit from any web browser you prefer on your PC to access the local website.

Leave a Reply