Ondemand local webserver

Ever wanted a local directory to host contents over http?

Here is how you do it,

$ python -mSimpleHTTPServer

Above command will host the contents of the current directory over http port 8000.

If you want to use a custom port, use the command below

$ python -mSimpleHTTPServer <custom port>

 

You may also like...

Leave a Reply

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