Display/log value of document_root

Вадим Лазовский vadim.lazovskiy at gmail.com
Thu Dec 20 11:03:11 UTC 2012


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 <nginx-forum at nginx.us>

> 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 :)
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,234213,234213#msg-234213
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



-- 
Best Regards,
Vadim Lazovskiy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121220/ae29d0ce/attachment.html>


More information about the nginx mailing list