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
on 2012-12-20 00:32
on 2012-12-20 12:04
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>
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.