httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Yu. Zhbanov" <>
Subject [users@httpd] Is it possible to get rid of error_log entry when using ErrorDocument for 404?
Date Wed, 01 Jun 2005 12:42:53 GMT

// Apache/2.0.53 (Unix) PHP/4.3.10

I am using .htaccess to set handler for missing documents. They are not really
missing. It is a trick to have beautiful URLs when generating site content
from a database.

So, I have following .htaccess:

--- BEGIN ---
ErrorDocument 404 /~bsg/e/found.php
---  END  ---

And the found.php is:

--- BEGIN ---
header ("HTTP/1.0 200 OK");
echo "Hello! You are looking for '${_SERVER['REQUEST_URI']}'\n";
---  END  ---

The script even sets HTTP status to "200 OK" but it didn't help.

Is there a way to tell Apache from error document that everything is alright
and I don't want a record in error log?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message