>Number: 2697 >Category: os-freebsd >Synopsis: VirtualHosting from a single IP won't work >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Jul 24 08:10:00 PDT 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.1 >Environment: FreeBSD ns1.connectit.net 2.2.6-STABLE FreeBSD 2.2.6-STABLE #0: Sun Jul 19 13:53:57 MDT 1998 [EMAIL PROTECTED]:/usr/src/sys/compile/CO NNECTIT i386 >Description: The problem lies in that the <VirtualHost> command will cause the main html pages to be ignored and the virtual host pages will be the default html pages as well the the virtualhosts pages. I.E.: www.host.com == /usr/www/docs www.virthost.com == /usr/www/docs/virthostname
<VirtualHost www.virthost.com> ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/www/docs/virthostname ServerName www.virthost.com ErrorLog /usr/www/logs/virthostname-error_log TransferLog /usr/www/logs/virthostname-transfer_log </VirtualHost> SIGHUP httpd and connect to the Virtualhost url; it will show the virtualhost homepage - the problem comes when connecting to www.host.com; as the homepage for www.host.com is the same as for www.virthost.com. I have tried several different ways to fix this; ie. point DocumentRoot in srm.conf to /usr/www/docs/hostname and VirtualHost to /usr/www/docs/virthostname This did not correct it, I have spent the better part of a day trying to see what is going on. ErrorLog doesn't show any problem. Not changing the config files, but merely replacing httpd1.3.1 with httpd1.2.4 instantly fixed my problem; Using a browser >How-To-Repeat: Install 1.3.1 >Fix: Don't use 1.3.1 or just a version such as 1.2.4 >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]
