This is a discussion on Limiting the error_log within the Apache Web Server forums, part of the Web Server and Related Forums category; Is there any way to stop 404 errors being logged in the error_log file on Apache? Basically I'm generating ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Is there any way to stop 404 errors being logged in the error_log file
on Apache? Basically I'm generating a deliberate 404 error, and using a .htaccess file and a request_url to redirect the request to a specific file (don't ask why ... it's related to Mac computers and image files!). I just don't want these 404 errors filling up my Apache error_log. These are really the only errors that I don't want logged, is there any way of doing this? Thanks for your help. |
|
|||
|
Thanks for your reply ... however it doesn't seem to help. I have
looked at the documentation and with regards to the error_log, it says: "It is not possible to customize the error log by adding or removing information" Conditional logging works with the access_log, not the error_log (according to the documentation), So, any other thoughts on preventing 404 errors being logged in the error_log? |
|
|||
|
Thanks for that - you are right, this looks like the approach we should
take. I had looked at the documentation (which is where I got the quote "It is not possible to customize the error log by adding or removing information") - and because I believed that I didn't think that you could in fact use a pipe to customize the error log. I'll give it a try, and thanks again for your help. |
| Thread Tools | |
| Display Modes | |
|
|