Simple command line HTTP server
I have a script which generates a daily report which I want to serve to the so called general public. The problem is I don't want to add to my headaches maintance of a HTTP server (e.g. Apache) with all the configurations and security implications.
Is there a dead simple solution for serving one small HTML page without the effort of configuring a full blown HTTP server?
Indeed! Use FTP, like the World Wide Web did before HTTP was finished! (Although I suppose it wasn't quite as world-wide in early 1990s. )
Can be found here: nweb.c
(previously at ibm.com)
To compile nweb.c:
gcc -O -DLINUX nweb.c -o nweb