Hi,
i have this configuration:
server {
listen 8080;
server_name xxx.com;
root "/home/xxx/xxx.xxx.com.xx";
index index.php;
client_max_body_size 10m;
location / {
try_files $uri $uri/ /index.php$uri?$args;
}
location ~ "^(.+\.php)($|/)" {
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_read_timeout 120;
expires 3h;
fastcgi_pass 127.0.0.1:7777;
include fastcgi_params;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
access_log off;
}
location ~* \.(html|htm)$ {
expires 30m;
}
location ~* /\.(ht|git|svn) {
deny all;
}
}
when i type: www.xxx.com it is work fine, acess /home/xxx/xxx.xxx.com.xx/index.php OK!
when i try www.xxx.com/index.php/news i have "Access denied." and in i have this erros in my error.log
FastCGI sent in stderr: "Access to the script '/home/xxx/xxx.xxx.com.xx/index.php/news' has been denied (see security.limit_extensions)" while reading response header from upstream
my security.limit_extensions = .php .php3 .php4 .php5 .html .htm in fpm pool
how i can solve this issue?
thanks
i have this configuration:
server {
listen 8080;
server_name xxx.com;
root "/home/xxx/xxx.xxx.com.xx";
index index.php;
client_max_body_size 10m;
location / {
try_files $uri $uri/ /index.php$uri?$args;
}
location ~ "^(.+\.php)($|/)" {
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_read_timeout 120;
expires 3h;
fastcgi_pass 127.0.0.1:7777;
include fastcgi_params;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
access_log off;
}
location ~* \.(html|htm)$ {
expires 30m;
}
location ~* /\.(ht|git|svn) {
deny all;
}
}
when i type: www.xxx.com it is work fine, acess /home/xxx/xxx.xxx.com.xx/index.php OK!
when i try www.xxx.com/index.php/news i have "Access denied." and in i have this erros in my error.log
FastCGI sent in stderr: "Access to the script '/home/xxx/xxx.xxx.com.xx/index.php/news' has been denied (see security.limit_extensions)" while reading response header from upstream
my security.limit_extensions = .php .php3 .php4 .php5 .html .htm in fpm pool
how i can solve this issue?
thanks