Lighttpd: Difference between revisions
No edit summary |
|||
Line 16: | Line 16: | ||
}} |
}} |
||
'''lighttpd''' ( |
'''lighttpd''' (nicknamed "lighty")<ref>{{cite web|url=http://www.lighttpd.net/|title=lighttpd fly light|accessdate=2010-06-13|quote=all of these describe lighttpd (pron. lighty)}}.</ref> is an open-source [[web server]] optimized for speed-critical environments while remaining standards-compliant, secure and flexible.{{Citation needed|date=April 2010}} 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,<ref> |
||
{{Cite web| url=http://www.lighttpd.net/story| title=lighttpd: Story| accessdate=22 December 2008| publisher=lighttpd.net}}</ref> |
{{Cite web| url=http://www.lighttpd.net/story| title=lighttpd: Story| accessdate=22 December 2008| publisher=lighttpd.net}}</ref> |
||
but has gained worldwide popularity.<ref>{{Cite web| url=http://trac.lighttpd.net/trac/wiki/PoweredByLighttpd| title=Powered By lighttpd| accessdate=22 December 2008| publisher=Lighttpd wiki}}</ref> Its name is a [[portmanteau]] of "light" and "[[httpd]]". |
but has gained worldwide popularity.<ref>{{Cite web| url=http://trac.lighttpd.net/trac/wiki/PoweredByLighttpd| title=Powered By lighttpd| accessdate=22 December 2008| publisher=Lighttpd wiki}}</ref> Its name is a [[portmanteau]] of "light" and "[[httpd]]". |
Revision as of 11:51, 19 September 2019
Original author(s) | Jan Kneschke |
---|---|
Initial release | March 2003 |
Preview release | 1.4.76 (April 12, 2024[±] | )
Repository | |
Written in | C |
Available in | English |
Type | Web server |
License | 3-clause BSD |
Website | www |
lighttpd (nicknamed "lighty")[1] is an open-source web server optimized for speed-critical environments while remaining standards-compliant, secure and flexible.[citation needed] 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,[2] but has gained worldwide popularity.[3] Its name is a portmanteau of "light" and "httpd".
Premise
The low memory footprint (compared to other web servers),[4] small CPU load and speed optimizations[5] 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.[6]
Application support
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.
Features
- Load balancing FastCGI, SCGI and HTTP proxy support
chroot
support- Web server event mechanism performance –
select()
,poll()
, andepoll()
[7] - Support for more efficient event notification schemes like
kqueue
andepoll
- Conditional URL rewriting (mod_rewrite)
- TLS/SSL with SNI support, via OpenSSL.
- Authentication against an LDAP server
- RRDtool statistics
- Rule-based downloading with possibility of a script handling only authentication
- Server Side Includes support (but not server-side CGI)[8]
- Flexible virtual hosting
- Modules support
- Cache Meta Language (currently being replaced by mod_magnet)[9] using the Lua programming language
- Minimal WebDAV support
- Servlet (AJP) support (in versions 1.5.x and up)
- HTTP compression using mod_compress and the newer mod_deflate (1.4.42)
- Light-weight (less than 1 MB)[10]
- Single-process design with only several threads. No processes or threads started per connection.
Limitations
- Versions below 1.4.40 do not officially support sending large files from CGI, FastCGI, or proxies[11] unless X-Sendfile is used. This limitation has been removed in lighttpd 1.4.40.[12]
- No SPDY or HTTP/2 support
Usage
Lighttpd is used by a number of high-traffic websites, among them are Bloglines and xkcd.[13] It was used in the past by Meebo and YouTube.[14][better source needed] The Wikimedia Foundation also runs Lighttpd servers.[15][16][17][18]
See also
- 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
References
- ^ "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". Retrieved 15 March 2012..
- ^ Gabriel Kerneis and Juliusz Chroboczek. Are events fast?. PPS technical report, University of Paris 7. 2009.
- ^ "Downloads @ WLMP Project". Retrieved 2011-03-27.
LightTPD webserver for Windows Systems
. - ^ Gammo, Louay; Brecht, Tim; Shukla, Amol; Pariag, David (2004). "Comparing and Evaluating epoll, select, and poll Event Mechanisms". Linux Symposium. University of Waterloo. p. 215.
{{cite web}}
: Missing or empty|url=
(help) - ^ Lighttpd - Bug #1101: SSI include virtual does not run cgi – lighty labs
- ^ http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModMagnet
- ^ "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.
- ^ "Lighttpd Web Server Usage". WebTechster. Retrieved 2014-03-26.
- ^ "Fly Light With Lighttpd Web Server". ServerWatch. Archived from the original on 31 March 2014. Retrieved 2008-02-12.
- ^ Brion Vibber (2008-08-26). "Apache mod_php in wikipedia". Wikimedia wikitech-l mailing list. Retrieved 2008-08-27.
- ^ Tim Starling (2008-08-27). "Apache mod_php in wikipedia". Wikimedia wikitech-l mailing list. Retrieved 2008-08-27.
- ^ Domas Mitzuas (2008-08-27). "Apache mod_php in wikipedia". Wikimedia wikitech-l mailing list. Retrieved 2008-08-27.
- ^
"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.
Further reading
- Bogus, Andre (October 29, 2008). Lighttpd (1st ed.). Packt Publishing. p. 236. ISBN 978-1847192103.