You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2002/08/17 16:21:10 UTC

Re: custom error handler

Matthias Henze wrote:
> hi,
> 
> i'm using apache_1.3.26
> 
> i've read this: http://httpd.apache.org/docs/custom-error.html
> 
> i've placed the following directive in httpd.conf:
> 
> ErrorDocument 403 http://service.mhcsoftware.de/cgi-bin/403.cgi
> 

This seems a little more complicated than strictly necessary.  Why don't 
you just use the printenv cgi script that comes with apache.

Anyway, your problem is most likely that you are using a full URL.  This 
causes an external redirect to be performed, which means all context 
info is lost.  Try:

ErrorDocument 403 /cgi-bin/403.cgi

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