RoldanLT
Customer
My current config:
Code:
server {
listen 108.61.163.221:80 default_server;
server_name vps.phc.onl;
access_log /var/log/nginx/localhost.access.log main buffer=64k flush=5m;
error_log /var/log/nginx/localhost.error.log error;
root /var/www/html;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php =404;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
include fastcgi.conf;
}
location ~* \.(?:ico|css|gif|jpe?g|js|png|swf)(\?.+)?$ {
access_log off;
log_not_found off;
expires 1y;
}
}
Code:
# netstat -an | grep ":80"
tcp 0 0 108.61.163.221:80 0.0.0.0:* LISTEN