Software:lighttpd

From HandWiki

lighttpd
Lighttpd logo.svg
Original author(s)Jan Kneschke
Initial releaseMarch 2003; 21 years ago (2003-03)
Stable release1.4.64 (January 19, 2022; 2 years ago (2022-01-19)) [±][1]
Written inC
Available inEnglish
TypeWeb server
LicenseBSD-3-Clause

lighttpd (prescribed pronunciation: "lighty")[2] 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,[3] but has gained worldwide popularity.[4] Its name is a portmanteau of "light" and "httpd".

Premise

The low memory footprint (compared to other web servers),[5] small CPU load and speed optimizations[6] 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.[7]

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

Limitations

  • Versions below 1.4.40 do not officially support sending large files from CGI, FastCGI, or proxies[13] unless X-Sendfile is used. This limitation has been removed in lighttpd 1.4.40.[14]
  • No HTTP/3 support

Usage

Lighttpd was used in the past by several high-traffic websites, including Bloglines, xkcd, Meebo, and YouTube.[15][better source needed] The Wikimedia Foundation also once ran Lighttpd servers.[16] 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.

See also

References

  1. "1.4.64". 2022-01-19. https://www.lighttpd.net/2022/1/19/1.4.64/. 
  2. "lighttpd fly light". http://www.lighttpd.net/. "all of these describe lighttpd (pron. lighty)" .
  3. "lighttpd: Story". lighttpd.net. http://www.lighttpd.net/story. 
  4. "Powered By lighttpd". Lighttpd wiki. http://trac.lighttpd.net/trac/wiki/PoweredByLighttpd. 
  5. "Web Server Performance Comparison". http://wiki.dreamhost.com/Web_Server_Performance_Comparison. .
  6. Gabriel Kerneis and Juliusz Chroboczek. Are events fast?. PPS technical report, University of Paris 7. 2009.
  7. "lighttpd release 1.4.70". https://redmine.lighttpd.net/projects/lighttpd/wiki/Release-1_4_70. 
  8. 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. https://cs.uwaterloo.ca/~brecht/papers/ols-2004.pdf. 
  9. "1.4.56 - Lighttpd - fly light". 2020-11-29. https://www.lighttpd.net/2020/11/29/1.4.56/. 
  10. Lighttpd - Bug #1101: SSI include virtual does not run cgi – lighty labs
  11. "Docs ModMagnet - Lighttpd - lighty labs". http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModMagnet. 
  12. "lighttpd releases". lighttpd.net. http://download.lighttpd.net/lighttpd/. 
  13. "Memory usage increases when proxy+ssl+large file". lighttpd bug tracker. http://redmine.lighttpd.net/issues/1283. 
  14. "lighty should buffer responses (after it grows above certain size) on disk". lighttpd bug tracker. https://redmine.lighttpd.net/issues/933. 
  15. "Fly Light With Lighttpd Web Server". ServerWatch. http://www.serverwatch.com/stypes/servers/article.php/17191_3678346. 
  16. "Powered by Lighttpd". The official site. 2007-04-04. http://www.lighttpd.net/2007/4/4/powered-by-lighttpd. "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

External links