You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Digispec <an...@digispec.com> on 1998/05/01 08:10:01 UTC
Re: config/2164: ErrorDocument does not work in
directive.
The following reply was made to PR config/2164; it has been noted by GNATS.
From: Digispec <an...@digispec.com>
To: marc@hyperreal.org
Cc: apbugs@Apache.Org
Subject: Re: config/2164: ErrorDocument does not work in <VirtualHost>
directive.
Date: Thu, 30 Apr 98 23:10:01 PDT
At 05:27 AM 5/1/98 -0000, you wrote:
>Synopsis: ErrorDocument does not work in <VirtualHost> directive.
>
>State-Changed-From-To: open-analyzed
>State-Changed-By: marc
>State-Changed-When: Thu Apr 30 22:27:06 PDT 1998
>State-Changed-Why:
>What is in the error log?
>
>If you try accessing http://vhostname/error-s10/401.htm
>does it load properly? (where vhostname is the vhost in
>question).
No.
>Do you have an alias setup to direct /error-s10/ to
>c:/apache/error-s10/ ?
No, there was not one. I was going on the assumption
that it would be read from the server root as defined
in srm.conf or httpd.conf, and Apache would issue it
instead of the server generated error message.
I did add the alias, and still the same output.
However, I found that when I removed the
<Location>---</Location> directive block,
the ErrorDocument did work correctly now. :)
Many thanks Marc! I -=>SHOULD<=- have
realized an alias needed to be set, since
I had even set one for /systemimages/!!!
I gotta quit working such late hours!
Now, I suggest a reference to needing
an alias directive be added to the docs
under ErrorDocument and VirtualHost. :(
<s10-4x4.conf as included in httpd.conf>
<VirtualHost 127.0.0.1>
# ADDED AS REQUESTED BY MARC
Alias /error-s10/ c:/apache/error-s10/
# ADDED AS SUGGESTED IN A SIMILAR PR
# -=> THIS MUCKED UP THE ALIAS DIRECTIVE! DONT USE THIS
# WITH THE ALIAS AND ERRORDOCUMENT! <=-
#<Location /error-s10/>
#allow from all
#Satisfy any
#</Location>
# ERROR DOCS
# RESIDE IN: c:/apache/error-s10/
ErrorDocument 404 /error-s10/404.htm
ErrorDocument 401 /error-s10/401.htm
ErrorDocument 403 /error-s10/403.htm
ServerAdmin flash@gordon.org
DocumentRoot c:/apache/htdocs/s10-4x4/public
ServerName www.dodah.com
ErrorLog c:/apache/htdocs/s10-4x4/logs/error.log
CustomLog c:/apache/htdocs/s10-4x4/logs/allstats.log "%h %l %u %t \"%r\" %s
%b \"%{Referer}i\" \"%{User-agent}i\""
DirectoryIndex index.htm index.html default.htm default.html
ScriptAlias /cgi-bin/ c:/apache/htdocs/s10-4x4/cgi-bin/
#ScriptAlias /cgi-bin c:/apache/htdocs/s10-4x4/cgi-bin/
ScriptAlias /public-cgi/ c:/apache/htdocs/s10-4x4/public-cgi/
#ScriptAlias /public-cgi c:/apache/htdocs/s10-4x4/public-cgi/
AddHandler cgi-script .pl
AddHandler cgi-script .exe
AddHandler Server-Parsed .shtml
<directory c:/apache/htdocs/s10-4x4/cgi-bin>
Options execCGI
</directory>
<directory c:/apache/htdocs/s10-4x4/public-cgi>
Options execCGI
</directory>
<directory c:/apache/htdocs/s10-4x4/public>
Options Includes
</directory>
Alias /systemimages/ c:/apache/systemimages/
# NOT ALLOW INDEXING
#<directory c:/apache/htdocs/s10-4x4/public/>
#Options -Indexes
#</directory>
# PASSWORD PROTECT
# DIGITAL ARTICALS ETC...
<directory c:/apache/htdocs/s10-4x4/public/member>
AuthUserFile c:/apache/htdocs/s10-4x4/passwords/member.txt
AuthName "The S-10 4X4 Member's Area"
AuthType basic
Require valid-user
</directory>
# PASSWORD PROTECT
# SEARCH ENGINE AND THREADED DISCUSSION GROUP
<directory c:/apache/htdocs/s10-4x4/cgi-bin>
AuthUserFile c:/apache/htdocs/s10-4x4/passwords/member.txt
AuthName "The S-10 4X4 Member's Area"
AuthType basic
Require valid-user
</directory>
# PASSWORD PROTECT
# THREADED DISCUSSION GROUP MESSAGES
<directory c:/apache/htdocs/s10-4x4/public/messages>
AuthUserFile c:/apache/htdocs/s10-4x4/passwords/member.txt
AuthName "The S-10 4X4 Member's Area"
AuthType basic
Require valid-user
</directory>
</VirtualHost>
Close the PR, prob fixed!
(I still say mod the docs! <G!>)
A thousand thanks, and God bless Apache!
Andrew
PS
I will run Apache over *any other*
HTTPd *any day!*
---------------------------------------------------------------------
Digispec
"Your Digital Specialist"
www.digispec.com
Custom Programming for the Internet & More!
P.O. Box 19193 Roanoke VA 24019-1020
E-Mail:computer@digispec.com
---------------------------------------------------------------------