Every once in a while when I'm debugging some web app, it would be useful for me to be able to serve a folder via a lightweight HTTP server. Something along the lines of
cd folder
httpserve -p 5000
in order to serve that folder over port 5000. Is there any tool to allow me to do this?
Thanks.
From serverfault
-
python -m SimpleHTTPServer 5000Or for cgi serving:
python -m CGIHTTPServer 5000and browse to :
http://localhost:5000/myscript.py: Exactly what I was looking for, thanks!ax25 : You are welcome. Glad to have one to answer!From ax25
0 comments:
Post a Comment