Lighttpd

lighttpd is a fast and lightweight web server.

Emerge
Install :

Configuration
The lighttpd configuration is handled by. The first example shows a single-site access, with SSL and no dynamic capabilities (such as PHP).

To enable additional functionalities configure needed modules in. For instance, to enable PHP using the FastCGI processor:

IP access lists
This third example shows how to allow access to a particular site /server-status only to certain IP addresses. To allow using service status on the 198.51.100.1 and 127.0.0.1 addresses, set the following lines in the file:

Start up
In order for the lighttpd service to start automatically it must be properly added to the init handler program. Gentoo has two main init handler programs: OpenRC and Systemd.

OpenRC
With OpenRC use the rc-update command:

Systemd
With Systemd use the systemctl command:

Troubleshooting
Verifying configuration file with lighttpd-angel, it will return the exit code , if everything is configured properly:

If the configuration file has errors, it will print it to stdout, like in the example below:

External resources
http://redmine.lighttpd.net/projects/lighttpd/wiki - The Lighttpd Wiki.