Simple Http server using python

May 1, 2010  

Here is a quick tips to easily serve static files. The only requirement is to have python 2.5+.

The first thing to do is to go in the directory you want to share, this is the directory that would be apache DocumentRoot.

Then issue the following command and you are done:

$ python -m SimpleHTTPServer

You can optionnaly give a port number after SimpleHTTPServer, the default port number is 8000