You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Roger Williams <ro...@roger.jp> on 2002/03/24 03:59:48 UTC

RE:(version #) The Truth About ErrorDocument Directive

su-2.04# /var/www/bin/httpd -v
Server version: Apache/1.3.23 (Unix)
Server built:   Mar  8 2002 05:12:43

-----Original Message-----
From: Roger Williams [mailto:roger@roger.jp]
Sent: Saturday, March 23, 2002 9:57 PM
To: users@httpd.apache.org
Subject: RE: The Truth About ErrorDocument Directive



Below is what I get when I run configtest.  I dont remeber the page I saw
that said it wasnt going to work, I was looking every where for info on the
subject. But they did come outright and say Apache Docs were wrong.

Roger


su-2.04# /var/www/bin/apachectl configtest
[Sun Mar 24 11:48:48 2002] [notice] cannot use a full URL in a 401
ErrorDocument directive --- ignoring!
Warning: DocumentRoot [/home/golfc3/virtual_html] does not exist
Syntax OK
su-2.04#

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Saturday, March 23, 2002 9:22 PM
To: users@httpd.apache.org
Subject: Re: The Truth About ErrorDocument Directive



On Sat, 23 Mar 2002, Roger Williams wrote:

>
> Can someone please tell me the truth about the ErrorDocument Directive?
The
> Docs say you can use a full URL as a directive, but I have seen pages "out
> there" that claim apache docs are wrong and you can't us a full URL
> (http://abc.com).  When I put one in my conf file and run configtest I get
a
> warning but yet it still serves the page at the full URL.  As long as it
> works it is all good, I'm just curious about the inconsistincies.
>

What warning do you get?  What pages "out there" are making those claims?

The docs at
http://httpd.apache.org/docs/mod/core.html#errordocument
are perfectly accurate.  Full or local URLs can be used, except for 401.
Local URLs are recommended because full URLs will hide the true status
code from the client (in order to send the redirect status code).

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



---------------------------------------------------------------------
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