>Number: 318 >Category: config >Synopsis: ErrorDocument with multiple virtual hosts goes to _first_ >virtualhost defined. >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: [EMAIL PROTECTED] >Organization: apache >Release: 1.2b7 >Environment: Linux linus.net-cess.com 2.0.27 #5 Wed Mar 26 09:10:26 CST 1997 i586 GNU gcc >Description: 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. >How-To-Repeat: Here's a segment of my httpd.conf:
<VirtualHost www.klll.com> ServerAdmin [EMAIL PROTECTED] 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> <VirtualHost www.patham.com> ServerAdmin [EMAIL PROTECTED] 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 </VirtualHost> A 404 error generated on patham, or even the main site (www.net-cess.com) was redirected to http://www.net-cess.com/other/404klll.html >Fix: Sorry, but I don't >Audit-Trail: >Unformatted:
