Prevent Apache from logging 404 Errors, logging all other errors

Posted by ApacheNovie on Stack Overflow See other posts from Stack Overflow or by ApacheNovie
Published on 2010-04-20T22:57:24Z Indexed on 2010/04/20 23:03 UTC
Read the original article Hit count: 513

Filed under:
|
|

I would like to disable 404 errors from appearing in my Apache error logs. The reason for this is that I have a custom page that handles 404 errors, performing any necessary redirects. If no valid redirect is found in this 404 page, then a nice page appears and the url and other information are logged by the script. Because of this, I do not need 404 errors in my Apache error log. Is there any way to just disable 404s short of doing a custom pipe?

© Stack Overflow or respective owner

Related posts about apache

Related posts about 404