Quick-n-Dirty Python Web Server
- author:: Nathan Acks
- date:: 2021-09-16
Serve files out of the current directory over HTTP using Python 3:
python3 -m http.server $PORT
The default $PORT is 8080.
Some useful python3 http.server flags:
–bind ADDRESS, -b ADDRESS Specify alternate bind address [default: all interfaces]
–directory DIRECTORY, -d DIRECTORY Specify alternative directory [default: current directory]