单线程Web服务器,darkhttpd 1.10 发布

jopen 10年前

darkhttpd是一个安全,轻量级,快速的单线程HTTP/1.1服务器。专门用于发布静态内容。

特性:

  • 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.
    </li>
  • 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.
  • </ul>

    安全:

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

    版本说明:此版本增加了一个 - -forward-all flag,忽略URL中的查询参数,因为只提供静态内容服务。