Welcome! Log In Create A New Profile

Advanced

Re: Display/log value of document_root

Вадим Лазовский
December 20, 2012 06:04AM
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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
Best Regards,
Vadim Lazovskiy
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Display/log value of document_root

abxccd December 19, 2012 06:32PM

Re: Display/log value of document_root

Вадим Лазовский December 20, 2012 06:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready