I been looking for a minute HTTP server for a small appliance and stumbled over
althttpd by Richard Hipp, the author of SQLite. It’s a single C source file which,
after compiling, is launched via inetd (or
xinetd), delivers static content and CGI (if the file is executable), and it
even supports virtual sites.