summaryrefslogtreecommitdiff
path: root/network/darkhttpd/README
blob: 4b210b0faaf8267a09d7b37dccd0609d9b81544b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
darkhttpd is a simple and secure static HTTP server.

Features:

* Single binary, no other files.
* Standalone, doesn't need inetd or ucspi-tcp.
* No messing around with config files -- all you have to specify is
  the www root.
* Written in C -- efficient and portable.
* Small memory footprint.
* Event loop, single-threaded -- no fork() or pthreads.
* Generates directory listings.
* Supports HTTP GET and HEAD requests.
* Supports Range / partial content. (Try streaming music files or resuming
  a download.)
* Supports If-Modified-Since.
* Supports Keep-Alive connections.
* Can serve 301 redirects based on Host header.
* Uses sendfile() on FreeBSD, Solaris and Linux.
* BSD license.

Security:

* Can log accesses, including Referer and User-Agent.
* Can chroot.
* Can drop privileges.
* Impervious to /../ sniffing.
* Times out idle connections.
* Drops overly long requests.

Limitations:

* Only serves static content -- no CGI.