Simple HTTP server with Python

Today I learned:

Simple HTTP server

Need to quickly test how something works/functions but don’t want to go through the hassle of putting it on a webserver? Python has you covered.

$ cd /home/some/dir $ python -m SimpleHTTPServer

Then you can access the stuff in that directory it via http://localhost:8000/ in your browser!

Control + c stops it.


Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: