單線程Web服務器,darkhttpd 1.10 發布
darkhttpd是一個安全,輕量級,快速的單線程HTTP/1.1服務器。專門用于發布靜態內容。
特性:
- Simple to set up:
- Single binary, no other files, no installation needed.
- Standalone, doesn't need
inetd
orucspi-tcp
. - No messing around with config files - all you have to specify is the
www
root.
</ul>
</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. </ul>
安全:
版本說明:此版本增加了一個 - -forward-all flag,忽略URL中的查詢參數,因為只提供靜態內容服務。本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!