On 6/30/07, Nanu Kalmanovitz <[EMAIL PROTECTED]> wrote:


Hi!

I set Apache2 to show other pages for 403 & 404 errors, than the standard
ones.
Now it seems that those errors don't appears any more in the log files.

Following are the changes in the  httpd.conf file:

# ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
ErrorDocument 403
http://www.kalmanovitz.co.il/k_comm/Templates/Error_Pages/403_Access_forbidden.HTM

# ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
ErrorDocument 404
http://www.kalmanovitz.co.il/k_comm/templates/Error_Pages/404-NOT_FOUND.htm

How can I set it to display my error pages and log the error codes too?

Look at the docs for the Errordocument directive, and in particular
the big box about the consequences of using an absolute URL. You can
probably fix your problem simply by deleting everying up to co.il in
the ErrorDocument target.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to