You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Magnus Stenman <st...@hkust.se> on 1997/02/25 01:50:01 UTC

config/194: ErrorDocument in Virtual host override ErrorDocument in Main host.

>Number:         194
>Category:       config
>Synopsis:       ErrorDocument in Virtual host override ErrorDocument in Main host.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Feb 24 16:50:00 1997
>Originator:     stone@hkust.se
>Organization:
apache
>Release:        1.2b7
>Environment:
Linux 1.2.29 (RedHat 4.1)
>Description:
I set:
ErrorDocument 404 /cgi-bin/missing-handler
in srm.conf
Works fine.

Then I add 
ErrorDocument 404 /rebuild.html
in a VirtualHost section in httpd.conf

Now when a 404 errors occur on either host (main or virtual)
/rebuild.html is used.
Since they have different DocumentRoots it won�t work.
>How-To-Repeat:
Set the ErrorDocument directives in srm.conf and in a VirtualHost section
of httpd.conf. Request a non-existing document from the main host.
>Fix:
Sorry, I�m not that good at C
>Audit-Trail:
>Unformatted: