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 192.168.1.10 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 handlers programs: OpenRC and Systemd.

OpenRC
When using OpenRC as the system init handler, use the rc-update command:

Systemd
When using systemd run 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
The LightTPD Wiki.