Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: 404s logged in error.log?

$
0
0
----- Original Message -----
> I was wondering if someone could confirm that requests resulting in a
> 404
> response are by default logged to error.log at error level "error".
>
> 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,

Correct.

> but perhaps
> I'm
> simply not handling that situation correctly in my configuration.
> Worth
> double-checking.
>

4xx responses are a client errors and don't go in the error.log

5xx are server errors which do go in the error log.

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

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>