httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Gommans <ngomm...@dragonfly.d2g.com>
Subject Re: Error 403/404 pages
Date Fri, 19 Apr 2002 02:47:12 GMT
I wrote a simple CGI script that does a very nice job, thanks for the links 
they had some helpful information leading me to the calls i needed in CGI

Thanks again,
Nick

On April 18, 2002 06:43 pm, Joshua Slive wrote:
> Nick Gommans wrote:
> > I want to have a custom error page, but i want it to also include that
> > "The requested URL /a-directory/a-file.html was not found" part
> >
> > Does anyone know of any available scripts taht i can modify to do taht?
> > or how to use a variable that gives me that in my .htaccess file?
>
> Do the following:
> ErrorDocument 404 /cgi-bin/printenv
>
> And then request a non-existant file.  You will see that apache provides
> all sorts of information in environment variables to error documents.
> The easiest way to use this info is using server side includes.
> See:
> http://httpd.apache.org/docs/custom-error.html
> http://httpd.apache.org/docs/misc/custom_errordocs.html
> and also see Apache 2.0 which comes with a bunch of ssi pages for errors.
>
> 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
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message