====== Nginx ====== ===== Installation and configuration ===== * install nginx and php with fpm use flag * create directory for vhost in /var/www, "chgrp nginx" it, and "chmod g+rXs" it (possibly o-rwx as well). * change "listen = /var/run/php-fpm.socket" and "user = nginx group = nginx" instead of "nobody" in /etc/php/php-fpm-xx/php-fpm.conf * add server config in /etc/nginx/nginx.conf such as: server { listen 80; server_name domain.fr; access_log /var/log/nginx/domain.fr.access_log main; error_log /var/log/nginx/domain.fr.error_log info; index index.php; root /var/www/domain.fr; location ~ \.php$ { include /etc/nginx/fastcgi.conf; fastcgi_pass unix:/var/run/php-fpm.socket; fastcgi_param PHP_VALUE "include_path=.:/var/www/domain.fr/include"; } } * start nginx and php-fpm init scripts and add them to rc-update