404 not showing up in error logs (for PHP files)
mdounin at mdounin.ru
Sat Jan 7 11:37:09 UTC 2012
On Thu, Jan 05, 2012 at 12:05:36PM -0500, Ilan Berkner wrote:
> 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.
This is expected behaviour. The "try_files" directives checks
files as configured and uses configured fallback if there are no
files found. It is not expected to log anything to error log
if there are no files found.
More information about the nginx