Forum Moderators: phranque

Message Too Old, No Replies

How to stop error logging for 404 errors?

My error log is growing

         

AjiNIMC

12:12 pm on Mar 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

For some particular reason we are accessing some files which throws 404. Is there a way to stop logging 404 errors to apache error log file?

Thanks,
Aji

jdMorgan

2:26 pm on Mar 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See the CustomLog directive in mod_log_config [httpd.apache.org] -- Or preferably, fix your 404 problems. Quality sites don't throw 404s from internal links, and hiding these errors will make it *very* difficult to monitor your site for invalid links.

Jim

AjiNIMC

6:12 pm on Mar 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a special case where I need to generate these 404 errors but do not want to log it. I will go through the links. Thanks.

jdMorgan

6:15 pm on Mar 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you *expect* to receive requests for URLs that you know to be obsolete, then the correct response is 410-Gone, not 404-Not Found. So, that should be considered while formulating your plan and implementation.

Jim