When you need a web server in a hurry.

darkhttpd-1.12.tar.bz2 (20,184 bytes)
or: darkhttpd.c
or: git clone https://unix4lyfe.org/git/darkhttpd (http works too)
or: browse the darkhttpd gitweb.

Features:

Security:

Limitations:

History:

Screenshot:

$ make
cc -O2 -fno-strict-aliasing -pipe  `[ \`uname\` = "SunOS" ] && echo -lsocket -lnsl` darkhttpd.c -o darkhttpd
$ ./darkhttpd ~/public_html
darkhttpd/1.7, copyright (c) 2003-2008 Emil Mikulic.
listening on 0.0.0.0:80
^C
caught Interrupt: 2, stopping
$ _