404 not showing up in error logs (for PHP files)

Falko Timme ft at falkotimme.com
Thu Jan 5 22:03:17 UTC 2012


Have you tried

fastcgi_intercept_errors on;

?

----- Original Message ----- 
From: Ilan Berkner
To: nginx at nginx.org
Sent: Thursday, January 05, 2012 6:05 PM
Subject: 404 not showing up in error logs (for PHP files)


Hi All,


When a user enters an invalid php file name they are correctly routed to our 
default 404.html:


try_files $fastcgi_script_name =404;


The problem is that the 404 error is not showing up in our error logs.


Other 404 errors do show up in our system.


Please advise.


Thanks!



_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx 



More information about the nginx mailing list