nginx+php5-fpm
Возникла проблема. при попытке открыть локальный сайт получаю Access denied.
Бегу в логи и вижу:
2015/09/01 07:04:11 [error] 12559#0: *1 FastCGI sent in stderr: "Access to the script '/var/www/db.lo' has been denied (see security.limit_extensions)" while reading response header from upstream, client: 127.0.0.1, server: db.lo, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "db.lo"
вирт. Хост:
server {
listen 80;
server_name db.lo;
index index.php index.html index.htm;
set $root_path '/var/www/db.lo';
root $root_path;
location ~ \.php {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index /index.php;
include /etc/nginx/fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~* ^/(css|img|js|flv|swf|download)/(.+)$ {
root $root_path;
}
location ~ /\.ht {
deny all;
}
}