Select Page

Simple HTTP server

This server can be used to serve HTML files.

# Python2
python -m simplehttpserver

# Python3
python3 -m http.server
python3 -m http.server 8080
python3 -m http.server 8080 --bind 127.0.0.1

Simple CGI server

# Python2
python -m CGIHTTPServer

# Python3
python3 -m http.server --cgi