Hacker News new | ask | show | jobs
by jfr 5548 days ago
Simpler:

    python -m SimpleHTTPServer
8 comments

Almost as simple, but production-ready (fast, daemonize-able, ssl, etc.):

  twistd -n web --port=8080 --path=.
Funny thing is, one of the reason I wrote annyong was because I was getting tired of the boring SimpleHTTPServer listing style and found no simple alternatives :)
This isn't the same thing. Annyong shows you a list of files rather than serving straight up. If there is an index.html file it's just listed like all the other files. See the readme for more info.
Or in python3:

python -m http.server

Indeed. I use this method way too much. In fact, when I baked my own static page compiler script, this was the 'built-in' server.
Aw, I was just about to write just that comment. :)
Me too. I don't use python for development on a day to day basis but use the python SimpleHTTPServer all the time.
busybox httpd