Change the directory to the location of the files you want to expose:
mkdir /tmp/nothing && cd /tmp/nothing
Default port 8000:
python -m SimpleHTTPServer
Change the port
sudo python -m SimpleHTTPServer 80
Python3 equivalent:
sudo python -m http.server 80
Create a webserver and log everything to a file[1]:
PYTHONUNBUFFERED=x python3 -m http.server &> /tmp/http.server.log & echo $! > /tmp/http.server.pid
[1] https://stackoverflow.com/questions/46665484/python3-http-server-save-log-to-a-file