1 darkhttpd is a simple and secure static HTTP server.
5 * Single binary, no other files.
6 * Standalone, doesn't need inetd or ucspi-tcp.
7 * No messing around with config files -- all you have to specify is
9 * Written in C -- efficient and portable.
10 * Small memory footprint.
11 * Event loop, single-threaded -- no fork() or pthreads.
12 * Generates directory listings.
13 * Supports HTTP GET and HEAD requests.
14 * Supports Range / partial content. (Try streaming music files or
16 * Supports If-Modified-Since.
17 * Supports Keep-Alive connections.
18 * Can serve 301 redirects based on Host header.
19 * Uses sendfile() on FreeBSD, Solaris and Linux.
24 * Can log accesses, including Referer and User-Agent.
26 * Can drop privileges.
27 * Impervious to /../ sniffing.
28 * Times out idle connections.
29 * Drops overly long requests.
33 * Only serves static content -- no CGI.
37 You need to configue the darkhttpd using the file
39 /etc/default/darkhttpd
41 Them can start add rc.darkhttpd into rc.local
43 # Start the darkhttpd server:
44 if [ -x /etc/rc.d/rc.darkhttpd ]; then
45 /etc/rc.d/rc.darkhttpd start