www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Vasquez <webs...@net-cess.com>
Subject config/318: ErrorDocument with multiple virtual hosts goes to _first_ virtualhost defined.
Date Sat, 05 Apr 1997 21:10:01 GMT

>Number:         318
>Category:       config
>Synopsis:       ErrorDocument with multiple virtual hosts goes to _first_ virtualhost
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Apr  5 13:10:01 1997
>Originator:     webster@net-cess.com
>Release:        1.2b7
Linux linus.net-cess.com 2.0.27 #5 Wed Mar 26 09:10:26 CST 1997 i586
GNU gcc
I have many virtual sites on my system, and have customized ErrorDocument files primarily
for 404 errors.  When upgrading from 1.2b6 to 1.2b7 and testing various sites, I discovered
that a 404 error on any virtual site pulled up the ErrorDocument for the first virtual site
detailed in httpd.conf.
Here's a segment of my httpd.conf:

<VirtualHost www.klll.com>
ServerAdmin webmaster@klll.com
DocumentRoot /web/virtual/klll
ServerName www.klll.com
ErrorLog logs/klll.err
TransferLog logs/klll.log
ScriptAlias /cgi-bin/ /web/virtual/cgi/klll/
ErrorDocument  404 http://www.net-cess.com/other/404klll.html

<VirtualHost www.patham.com>
ServerAdmin webmaster@patham.com
DocumentRoot /web/virtual/patham
ServerName www.patham.com
ErrorLog logs/patham.err
TransferLog logs/patham.log
ErrorDocument  404 http://www.net-cess.com/other/404patham.html

A 404 error generated on patham, or even the main site (www.net-cess.com) was redirected to
Sorry, but I don't

View raw message