Display/log value of document_root

I am currently debugging a problem where PHP-FPM claims that there is
“No
input file specified”, but the file clearly exists in that location.

Is it possible to ask nginx to log the value or display the value of
$document_root and $fastcgi_script_name to a file?

Thanks :slight_smile:

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,234213,234213#msg-234213

Hello.

Please, try:

at “http” context:
log_format debug_phpfpm ‘$remote_addr [$time_local] “$request” $status
$document_root $fastcgi_script_name’;

then:

location ~ .php$ {
access_log /var/log/nginx/debug-fpm.log debug_phpfpm;
fastcgi_pass …;
}

2012/12/20 abxccd [email protected]