strange condition file not found nginx with php-fpm

ezak nginx-forum at
Thu Oct 6 20:43:07 UTC 2016

I was working with this config from 2 years without any problem

sudenly I face not found error message from niginx

and its come only when the link has "?", sample

if open the normal link, its working[any other php file].php

site config (changed user info)

server {
    listen *:80;
    #error_log   /var/log/nginx/ error;
    rewrite_log on;
                root   /home/user/public_html/;

    location / {
                index  index.php index.html index.htm ;

         location ~*
^.+\.(jpg|jpeg|gif|css|html|png|js|ico|bmp|zip|rar|txt|pdf|doc)$ {
                root /home/user/public_html/;
                # expires max;
                access_log off;

    location ~ ^/.+\.php {
        fastcgi_index index.php;
        fastcgi_intercept_errors on;
        include /etc/nginx/fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_script_name;



Posted at Nginx Forum:,270104,270104#msg-270104

More information about the nginx mailing list