Nginx sites-available
From Just Solve the File Format Problem
Revision as of 13:22, 18 April 2015 by VolodyA! V Anarhist (Talk | contribs)
These are plain text files which normally reside in sites-available directory within Nginx configuration location, and are linked from sites-enabled directory via a symbolic link.
Example
server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; server_name localhost; root /usr/share/nginx/html; location / { } location /volodya/ { index index.html; alias /home/volodya/job/2302/php/; location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini # With php5-cgi alone: #fastcgi_pass 127.0.0.1:9000; # With php5-fpm: fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } } }