ryanwold.net

A civic-minded citizen seeking the singularity

An entry

Python Simple Server

Date: 2014-10-14
Status: draft
Tags: howto

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.