Running Web Server with python SimpleHTTPServer

SimpleHTTPServer is a python module that allow you to run web server for static files.

To start web server, run

This will start a web server on port 8000.

You will be able to access server in URL

To stop server, press CTRL + C

To get SimpleHTTPServer run on differnt port, run

This will run SimpleHTTPServer on port 80.

Python 3

Python 3 comes with bult in module http.server, to use it, run

If you want to run on differnt port, specify port number

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published.