404s logged in error.log?

Piotr Sikora piotr at cloudflare.com
Sat May 18 02:10:10 UTC 2013


> Is that normal, or is there some piece of configuration I am missing that
> will stop them from being logged to error.log? I figured 404s would be an
> un-exceptional event that doesn't require error logging, but perhaps I'm
> simply not handling that situation correctly in my configuration. Worth
> double-checking.

The default behavior is to log such events.

You can change it with the "log_not_found" directive:

Best regards,
Piotr Sikora

More information about the nginx mailing list