one line http server

Written by: daniel

Date September 7, 2010

Sometimes I find myself doing some simple html project. Usually, it could be seen right from the hd using file://, but there are some stuff, that doesn’t necesarily work this way.

Instead of creating a new apache account etc. etc.. I found this simple line to create a http static server that server files from the current directory:

python -m SimpleHTTPServer 8900

and you can access your files with http://localhost:8900

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>