Lighttpd

lighttpd is a fast and lightweight web server.

Installation
Install :

USE flags
Next, make sure the lighttpd service is started automatically. If you use OpenRC run the following command:

When using systemd run  instead:

Configuration
The lighttpd configuration is handled by. Example 1 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 usig the FastCGI processor:

IP access lists
Example 3 shows how to allow access to a particular site /server-status only to certain IP addresses f.e. 192.168.1.10 127.0.0.1

Troubleshooting
Verifying configuration file with lighttpd-angel, it will return the exitcode 0, if everything is configured properly,

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