|Original author(s)||Jan Kneschke|
|Initial release||March 2003|
1.4.71 / 27 May 2023
|Preview release||2.0 (December 4, 2015)|
lighttpd (prescribed pronunciation: "lighty") is an open-source web server optimized for speed-critical environments while remaining standards-compliant, secure and flexible. It was originally written by Jan Kneschke as a proof-of-concept of the c10k problem – how to handle 10,000 connections in parallel on one server, but has gained worldwide popularity. Its name is a portmanteau of "light" and "httpd".
The low memory footprint (compared to other web servers), small CPU load and speed optimizations make lighttpd suitable for servers that are suffering load problems, or for serving static media separately from dynamic content. lighttpd is free and open-source software and is distributed under the BSD license. It runs natively on Unix-like operating systems, as well as Microsoft Windows.[obsolete source]
lighttpd supports the FastCGI, SCGI and CGI interfaces to external programs, allowing web applications written in any programming language to be used with the server. As a particularly popular language, PHP performance has received special attention. Lighttpd's FastCGI can be configured to support PHP with opcode caches (like APC) properly and efficiently. Additionally, it has received attention from its popularity within the Python, Perl, Ruby and Lua communities. Lighttpd also supports WebDNA, the resilient in-memory database system designed to build database-driven websites. It is a popular web server for the Catalyst and Ruby on Rails web frameworks. Lighttpd does not support ISAPI.
- Load balancing, CGI, FastCGI, SCGI, HTTP proxy, Servlet AJP, WebSocket tunnel support
- Web server event mechanism performance –
- Support for more efficient event notification schemes like
- Conditional URL rewriting (mod_rewrite)
- TLS/SSL with SNI support, via OpenSSL, GnuTLS, Mbed TLS, NSS, WolfSSL.
- Authentication against an LDAP or DBI server
- RRDtool statistics
- Rule-based downloading with possibility of a script handling only authentication
- Server Side Includes support (but not server-side CGI from SSI)
- Flexible virtual hosting
- Modules support
- Lua programming language scripts via mod_magnet
- WebDAV support
- HTTP compression using mod_deflate (zlib, brotli, zstd)
- Light-weight (less than 1 MB)
- Single-process design with only several threads. No processes or threads started per connection.
- HTTP/2 support since lighttpd 1.4.56
- HTTP/2 WebSocket support since lighttpd 1.4.65
- Versions below 1.4.40 do not officially support sending large files from CGI, FastCGI, or proxies unless X-Sendfile is used. This limitation has been removed in lighttpd 1.4.40.
- No HTTP/3 support
Lighttpd was used in the past by several high-traffic websites, including Bloglines, xkcd, Meebo, and YouTube.[better source needed] The Wikimedia Foundation also once ran Lighttpd servers. Due to relatively small size it's often used in embedded devices like GL.iNet and Turris Omnia.
It's also used by git as a HTTP server daemon.
- Comparison of web server software
- Internet Cache Protocol
- Proxy server which discusses client-side proxies
- Reverse proxy which discusses origin-side proxies
- Traffic Server
- Web accelerator which discusses host-based HTTP acceleration
- "1.4.71". Retrieved 27 May 2023.
- "lighttpd fly light". Retrieved 2010-06-13.
all of these describe lighttpd (pron. lighty).
- "lighttpd: Story". lighttpd.net. Retrieved 22 December 2008.
- "Powered By lighttpd". Lighttpd wiki. Retrieved 22 December 2008.
- "Web Server Performance Comparison". Archived from the original on 5 June 2016. Retrieved 15 March 2012..
- Gabriel Kerneis and Juliusz Chroboczek. Are events fast?. PPS technical report, University of Paris 7. 2009.
- "Downloads @ WLMP Project". Archived from the original on 2011-03-24. Retrieved 2011-03-27.
LightTPD webserver for Windows Systems.
- "lighttpd fly light". Retrieved 2020-02-10.
- Gammo, Louay; Brecht, Tim; Shukla, Amol; Pariag, David (2004). "Comparing and Evaluating epoll, select, and poll Event Mechanisms" (PDF). Linux Symposium. University of Waterloo. p. 215.
- gstrauss (2020-11-29). "1.4.56 - Lighttpd - fly light". Lighttpd. Retrieved 2023-06-02.
- Lighttpd - Bug #1101: SSI include virtual does not run cgi – lighty labs
- "Docs ModMagnet - Lighttpd - lighty labs".
- "lighttpd releases". lighttpd.net. Retrieved 20 June 2010.
- "Memory usage increases when proxy+ssl+large file". lighttpd bug tracker. Retrieved 2011-04-11.
- "lighty should buffer responses (after it grows above certain size) on disk". lighttpd bug tracker. Retrieved 2016-07-16.
- "Fly Light With Lighttpd Web Server". ServerWatch. Archived from the original on 31 March 2014. Retrieved 2008-02-12.
- "Powered by Lighttpd". The official site. 2007-04-04. Retrieved 2008-12-22.
lighttpd is used by many well-known sites. The typical scenario is using lighttpd as off-load server to push out static content and leave the complex work to another server.