talira

lighttpd

A secure, fast, compliant and very flexible web server

open sourceBSD-3-Clauseself-hostablefree

lighttpd (pronounced "lighty") is a small open source web server written in C, built to use little memory and CPU while serving many connections from a single event-driven process. It serves static files and passes dynamic requests to applications over FastCGI, SCGI (including the uwsgi protocol), CGI or HTTP with mod_proxy, tunnels WebSockets with mod_wstunnel, and adds URL rewriting, authentication, compression, WebDAV and Lua request scripting with mod_magnet. HTTP/2 has been on by default since 1.4.59, and TLS comes from a choice of OpenSSL, GnuTLS, mbedTLS, wolfSSL or NSS. The 1.4 series is the maintained line, released under the revised BSD licence.

Ways to install

Problems it solves

  • a lightweight web server for a small VPS or a router with very little RAM
  • serve static files fast from a single process without tuning worker processes
  • run PHP through FastCGI behind a small, low-memory web server
  • a web server for an embedded Linux device's admin interface
  • proxy requests to a Python or Ruby app over SCGI or uwsgi without a heavy server in front
  • forward WebSocket connections from my web server to a backend app
  • serve a WebDAV share from a minimal web server
  • rewrite and redirect URLs on a simple self-hosted website
  • an nginx or Apache alternative under a BSD licence that uses less memory
  • script request handling in Lua on a small web server

Features

  • single-process event-driven design for many concurrent connections
  • HTTP/2 on by default since 1.4.59, with h2c cleartext upgrade
  • TLS through mod_openssl, mod_gnutls, mod_mbedtls, mod_wolfssl or mod_nss
  • FastCGI, SCGI (and uwsgi) and CGI gateways
  • mod_proxy reverse proxy with load balancing
  • mod_wstunnel WebSocket tunnelling
  • mod_rewrite URL rewriting and redirects
  • mod_auth basic and digest authentication with pluggable backends
  • mod_deflate dynamic compression
  • mod_webdav, with an optional SQLite database for properties
View 1 more
  • mod_magnet: request handling in Lua

Capabilities

Takes pluginsplan not known

Alternatives

The same job

These do what lighttpd does.

  1. nginx HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy server, and mail proxy server
  2. Apache HTTP Server A secure, efficient and extensible open source web server
  3. Caddy The Ultimate Server with Automatic HTTPS

Compare lighttpd with the top 3