404 not showing up in error logs (for PHP files)
Francis Daly
francis at daoine.org
Thu Jan 5 23:32:49 UTC 2012
On Thu, Jan 05, 2012 at 12:05:36PM -0500, Ilan Berkner wrote:
Hi there,
> 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.
I don't see any 404s in error.log, and I do see all 404s in access.log.
Is that different from what you see, or different from what you expect?
(I do see in error.log where the nginx static file handler logs when it
fails to open an expected file; but that's distinct from 404 logging.)
f
--
Francis Daly francis at daoine.org
More information about the nginx
mailing list