Python one line HTTP server
Simply run the following command from the root directory you want to start using as root:
$ python -m SimpleHTTPServer
Go to http://localhost:8000 to start browsing.
You can pass as second parameter a different port if you do not want to use the default one.
$ python -m SimpleHTTPServer 8080
Use Ctrl-C to stop the server
Written by Diego Pérez
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#