>Number: 1502
>Category: general
>Synopsis: Problem using virtual Hosts
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue Dec 2 11:10:01 PST 1997
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3b3
>Environment:
Output from uname -a
FreeBSD autor.iland.pt 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Fri Nov 28 18:09:
19 WET 1997 [EMAIL PROTECTED]:/usr/src/sys/compile/MYKERNEL i386
>Description:
If i use Virtual Hosts, when open a page from a browser, it always open the
first
Virtual Host that i put on http.conf.
I have www.apmp.pt -> 194.65.48.15
And autor.iland.pt in the same IP address.
This machine is registered on DNS with autor.iland.pt
>How-To-Repeat:
#Part of httpd.conf
<VirtualHost autor.iland.pt>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/WWW/htdocs
ServerName autor.iland.pt
ErrorLog logs/autor/error_log
TransferLog logs/autor/access_log
</VirtualHost>
<VirtualHost www.apmp.pt>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/WWW/htdocs/apmp
ServerName www.apmp.pt
ErrorLog logs/apmp/error_log
TransferLog logs/apmp/access_log
</VirtualHost>
# End
If i use http://www.apmp.pt/, goes to the first Virtual Host, if i use
http://autor.iland.pt/ goes also to the first Virtual Host
>Fix:
Non
>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. ]