top | item 2407571

(no title)

jfr | 15 years ago

Simpler:

    python -m SimpleHTTPServer

discuss

order

tdavis|15 years ago

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

  twistd -n web --port=8080 --path=.

remi|15 years ago

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 :)

xutopia|15 years ago

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.

drx|15 years ago

Or in python3:

python -m http.server

wildmXranat|15 years ago

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.

terhechte|15 years ago

Aw, I was just about to write just that comment. :)

mattew|15 years ago

Me too. I don't use python for development on a day to day basis but use the python SimpleHTTPServer all the time.

pclouds|15 years ago

busybox httpd