Page 1 of 1

ErrorDocument without line in error_log

Posted: Tue Oct 10, 2006 2:32 am
by b888
Greetings.

I'm using ErrorDocument to dynamically create the content.

Code: Select all

ErrorDocument 404 /i/404.php
Each time user requests something that is missed, it's automatically created, saved to disk in appropriate place (so next time 404 do not even appear) and given to user.
Php script that process request do change http reply status as well to 200 via

Code: Select all

header('HTTP/1.0 200 OK');
The problem is that i can't prevent lines in error_log. Every time user's request come - even if it outputs 200 OK new line appears in error_log.
Can anyone suggest me how to solve this?

Posted: Tue Oct 10, 2006 7:38 am
by feyd
Don't use ErrorDocument? a good mod_rewrite should probably suffice. We have mountains of mod_rewrite threads, tips and so forth.

Posted: Tue Oct 10, 2006 9:02 am
by b888
In fact, previous version was using mod_rewrite.
The problem of mod_rewrite is that it increases process time for each request (tests showed up to 20-30% increase). And since reply time is very important in my case i would rather suffer unreadable error_log than use mod_rewrite again :)