Sometimes, you just want to quickly fire up a webserver serving files in the current directory, whether on the PI or on your PC. If you have python installed, you are in luck. Python comes with a built-in webserver module.
python -m SimpleHTTPServer 80
python -m http.server 80
If you then fire up a web browser and type http://localhost:80 or if you are on another computer
I have found this incredibly useful for 2 purposes:
- Just want to quicky look serve HTML files scattered around different places on my computer
- Transfer files between my PC and an ebook reader