#775096 RFP: darkhttpd -- A small and secure static webserver

Package:
wnpp
Source:
wnpp
Submitter:
Mateusz Łukasik
Date:
2019-11-22 13:39:03 UTC
Severity:
wishlist
#775096#5
Date:
2015-01-11 11:23:32 UTC
From:
To:
* Package name    : darkhttpd
   Version         : 1.11
   Upstream Author : Emil Mikulic <emikulic@gmail.com>
* URL             : https://unix4lyfe.org/darkhttpd/
* License         : BSD
   Programming Lang: C
   Description     : A small and secure static webserver

Features:
Simple to set up:
Single binary, no other files, no installation needed.
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.
Can use acceptfilter on FreeBSD.
At some point worked on FreeBSD, Linux, OpenBSD, Solaris.
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.

#775096#18
Date:
2019-11-22 13:35:03 UTC
From:
To:
Hi,

I'm also interested in adding this package.
of use-cases. What use-case is supported by darkhttpd but not by any other
existing HTTP server in Debian?

This one is for static files only, it is really tiny, fast and doing its
job well.
I can append that darkhttpd is widely use in Alpine Linux it would be nice
to add support for debian too.

- kvaps