Differences
This shows you the differences between two versions of the page.
software:nginx [2013/09/19 11:59] cyril created |
software:nginx [2013/09/19 16:40] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 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 " | ||
- | * add server config in / | ||
- | server { | ||
- | listen 80; | ||
- | server_name domain.fr; | ||
- | |||
- | access_log / | ||
- | error_log / | ||
- | |||
- | index index.php; | ||
- | root / | ||
- | |||
- | location ~ \.php$ { | ||
- | include / | ||
- | fastcgi_pass unix:/ | ||
- | } | ||
- | } | ||
- | </ | ||
- | * start nginx and php-fpm init scripts and add them to rc-update | ||
- | |||