Friday, April 5, 2013

Simple HTTP Server in Python

A very easy way to setup a simple HTTP server is by using this built-in Python capability. This will turn any directory into a web server directory. The only thing you have to do is run:
python -m SimpleHTTPServer
on the directory you want to host the files from and that's it. You can drop an index.html file in there, for example, and hit
in your browser and voila!