Forum Moderators: phranque

Message Too Old, No Replies

how to stop logging of 404 error?

want to omit 404 error in error log.

         

ephdia

11:38 am on Oct 23, 2007 (gmt 0)

10+ Year Member



Hello everyone,
In my case my error log got filled soon with only 404 error.Though this error is not going to help me while troubleshooting,i would like to disable 404 error logging.Is there anybody to help me?
Thanks in advance.
Thanks,
ephdia.

jdMorgan

1:06 pm on Oct 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you have server configuration-level access to httpd.conf or conf.d, you can use Apache mod_log_config to control conditional logging. Without config access, the best approach may be to try to eliminate the 404s that are obvious and easy to get rid of.

Jim

ephdia

1:10 pm on Oct 23, 2007 (gmt 0)

10+ Year Member



Thanks jdMorgan.i have access to httpd.conf file.Could you explain these configuration detaily?Please ....

Thanks,
ephdia

jdMorgan

1:16 pm on Oct 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please see Module mod_log_config [httpd.apache.org]. Specific questions are welcome.

Jim

ephdia

1:17 pm on Oct 23, 2007 (gmt 0)

10+ Year Member



how could i make redirect to only parent directory(not to sub-directory) using htaccess? Any ideas regarding this...Please help....

ephdia

1:30 pm on Oct 23, 2007 (gmt 0)

10+ Year Member



Thanks.i have gone through the link and configure httpd.conf log format as,
LogFormat "%h %l %u %t \"%r\" %>s %b \"%!404{Referer}i\" \"%{User-Agent}i\""

it is not giving error message at the userend but i am getting "file doesnot exist" error in the error log.Can't i make errorlog with out file doesn't exist error.

Please need your reply....Again thanks for sharing your knowledge..