httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Customized 403-404 error pages
Date Sat, 30 Jun 2007 11:51:29 GMT
On 6/30/07, Nanu Kalmanovitz <nanu@kalmanovitz.co.il> 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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message