Nginx

nginx a robust, small and high performance http and reverse proxy server web server.

Installation
Install :

Next, make sure the nginx service is started automatically:

Configuration
The nginx configuration is handled by. Example 1 shows a single-site access, without dynamic capabilities (such as PHP), gentoo default configuration.

To enable additional functionalities like php, it needs the php-fpm module from php to be running. On localhost socket communication with a php process. {{File|/etc/nginx/nginx.conf|Example 2 - Enabling PHP support| [...] http{ [...]   server { [...]           location ~ \.php$ { include /etc/nginx/fastcgi.conf; fastcgi_pass unix:/var/run/php-fpm.socket; } } }}

IP access lists
Example 3 shows how to allow access to a particular site /nginx_status only to certain IP addresses f.e. 192.0.2.1 198.51.100.1/24 127.0.0.1. IP addresses are in CIDR notation, see definition example below:

External resources

 * nginx Wiki
 * Gentoo Community wiki article