>Number: 1304 >Category: config >Synopsis: Main server broken by first VirtualHost found (with workaround) >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Oct 22 16:20:00 PDT 1997 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3b2 >Environment: FreeBSD I have one IP address with several DNS names (virtual hosts) and main server name is not equal to default DNS name, so I set it by ServerName directive. >Description: This problem is different than discussed NameVirtualHost thing. The bug is that main server_hostname is overwritted by first VirtualHost directive (mod_info shows it pretty well in Hostname).
I.e. first VirtualHost found effectively replace main server ServerName by some alternative DNS name calculated by unknown way for me. I find some ugly workaround, just add following lines before your first VirtualHost, so your main server name will be overwritten with that: <VirtualHost your_main_server_name> ServerName your_main_server_name </VirtualHost> >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted:
