ArticleslgStudy

computer science

Lighttpd

Lighttpd is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Lighttpd rather than just read about it. In short: lighttpd (prescribed pronunciation: "lighty") is an open-source web server optimized for speed-critical environments. 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.

Lighttpd — main illustration
Lighttpd — illustration

Key takeaways

  • Lighttpd belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Lighttpd to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Lighttpd from memory before moving on to harder problems.

Reference excerpt

lighttpd (prescribed pronunciation: "lighty") is an open-source web server optimized for speed-critical environments. 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".

Premise 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, with experimental support for Microsoft Windows.

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, CGI, FastCGI, SCGI, HTTP proxy, Servlet AJP, WebSocket tunnel support chroot support Web server event mechanism performance – select(), poll(), and epoll() Support for more efficient event notification schemes like kqueue and epoll 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 TLS Encrypted Client Hello (ECH) support since lighttpd 1.4.77

Limitations 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

Usage lighttpd was used in the past by several high-traffic websites, including Bloglines, xkcd, Meebo, and YouTube. 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.

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

Further reading

External links Official website

Worked examples

Example 1 — a first encounter with Lighttpd

Start with the simplest possible case. Write down what Lighttpd claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Lighttpd before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Lighttpd ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Lighttpd

In research
Lighttpd appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Lighttpd in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Lighttpd is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cross-platform free software, Free software programmed in C, Free web server software, so understanding it makes those chapters shorter.
In everyday life
Look for Lighttpd outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Lighttpd” →

How to study Lighttpd in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Lighttpd means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Lighttpd out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Lighttpd in simple terms?

lighttpd (prescribed pronunciation: "lighty") is an open-source web server optimized for speed-critical environments. 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.

Why does Lighttpd matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Lighttpd?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Lighttpd.

Tags

  • Cross-platform free software
  • Free software programmed in C
  • Free web server software
  • Unix network-related software
  • Web server software for Linux
  • Windows Internet software

Keep exploring