Sometimes I have to share some files over HTTP and I have no time to install apache or lighty. Everyone who has python can use SimpleHTTPServer module which can be started from command line.
Every request to your files will be logged to the terminal.
Start web server in some directory which should be shared:
1 2 | [root@hexa-core webserver]# python -m SimpleHTTPServer 88 Serving HTTP on 0.0.0.0 port 88 ... |
You can change the port!
Logs:
1 | pD4B88C85.dip.t-dialin.net - - [13/Jan/2011 21:57:01] "GET / HTTP/1.1" 200 |