Display/log value of document_root

I am currently debugging a problem where PHP-FPM claims that there is
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:


Please, try:

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


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

2012/12/20 abxccd [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs