Sometimes when configuring nginx and php-fpm I get message "File not found." I know this is beacause of wrong parameter SCRIPT_FILENAME, e.g.:
fastcgi_param SCRIPT_FILENAME /some/path$fastcgi_script_name;
I wonder is there a way to get exact full path of file which is cannot be found by php-fpm?
My php5-fpm.log has nothing, but:
[06-Jan-2014 11:14:33] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful
[06-Jan-2014 11:27:01] NOTICE: configuration file /etc/php5/fpm/php-fpm.conf test is successful
I've tried to change log_level option in php-fpm.conf to error and debug, but result remains the same
P.S. This line:
add_header X-My-Header /some/path$fastcgi_script_name;
doesn't do the trick, because add_header only works with successful responses, as I've read here
There is the nginx module, that allows to set header even with fail responses, but I think it should be an easier way to get file path.
Thank you.