server {
listen *:80 default_server;
server_name localhost;
root /var/www/web/sites/$host;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ .php$ {
## try_files $uri =404;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_ignore_client_abort off;
}
}
include phpmyadmin.conf;
location /catalog.html {
rewrite ^(.*)$ http://site.ru/ permanent;
}
location /index.html {
rewrite ^(.*)$ http://site.ru/ permanent;
}
location ~ /\.ht {
deny all;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
}