Source

django-in-a-box / docs / wiki / tools / lighttpd.md

lighttpd

lighttpd (pronounced ‘lighty’) is a small, lightweight, fully-featured HTTP web server. From its web page:

Security, speed, compliance, and flexibility — all of these describe lighttpd (pronounced lighty) which is rapidly redefining efficiency of a webserver; as it is designed and optimized for high performance environments. With a small memory footprint compared to other web-servers, effective management of the CPU load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more) lighttpd is the perfect solution for every server that is suffering load problems.

lighttpd comes with FastCGI baked in, so you won’t need to install any additional modules. It also uses a very simple configuration file syntax, that you can understand and edit without having to take a 4-week course.

Installation

Most variants of UNIX have their own package management system: apt-get on Debian, rpm on Red Hat and Fedora, emerge on Gentoo, port on FreeBSD, et cetera. If this is the case for your system, the package manager will definitely be the quickest and easiest way of installing lighttpd.

Compilation (including Mac OS X)

On Mac OS X, lighttpd must be compiled, since there are no official OS X binaries. You can use a system like MacPorts if you wish (perhaps the most convenient method). Instructions on compilation and installation can be found on HiveLogic. That post uses the 1.4.11 release of lighttpd, but you’ll want to use the latest stable version available.

lighttpd uses the standard autoconf routine: ./configure && make && make install. The only external dependency is the PCRE (Perl-compatible Regular Expressions) library, which can be found at http://www.pcre.org/.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.