Back to Entries
Tags: howto
Status: draft
Date: 2014-10-14

Python Simple Server


I found SimpleHTTPServer the other day, and it turned out to be a great way to easily serve a folder of html. Serving the site with a web server doesn't show errors when loading certain resources like viewing a file://whatever.html in the browser.

 python -m SimpleHTTPServer 
 python -m SimpleHTTPServer 8001 # custom port

After the server starts, your site can be view at http://localhost:8000.