Received: by taz.hyperreal.com (8.8.4/V2.0) id LAA06160;
Sun, 23 Mar 1997 11:26:47 -0800 (PST)
Received: by taz.hyperreal.com (8.8.4/V2.0) id LAA06130;
Sun, 23 Mar 1997 11:26:44 -0800 (PST)
Date: Sun, 23 Mar 1997 11:26:44 -0800 (PST)
From: Dean Gaudet
All vhosts are stored in a list which is in the reverse order that
--- 56,64 ----
first name in its
All vhosts are stored in a list which is in the reverse order that
***************
*** 118,126 ****
Now a pass is made through the vhosts to fill in any missing
For any undefined Now a pass is made through the vhosts to fill in any missing
For any undefined If no vhosts are matched then the last occurance, if it appears,
--- 145,151 ----
If no vhosts are matched then the last occurance, if it appears,
***************
*** 185,191 ****
of this match is to compare any port, if one was given in the request,
against the
If the port matches, then httpd scans the list of vhosts starting with
--- 189,195 ----
of this match is to compare any port, if one was given in the request,
against the
If the port matches, then httpd scans the list of vhosts starting with
***************
*** 199,206 ****
VirtualHost
directive. The complete
list of names in the VirtualHost
directive are treated
just like a ServerAlias
(but are not overridden by any
! ServerAlias
statement).
VirtualHost
directive. The complete
list of names in the VirtualHost
directive are treated
just like a ServerAlias
(but are not overridden by any
! ServerAlias
statement). Note that subsequent Port
! statements for this vhost will not affect the ports assigned in the
! address set.
ServerName
fields and to classify the vhost as either
! an ip-based vhost or a name-based vhost. A vhost is an
! ip-based vhost if none of the vhosts address set overlaps the main_server
! address set. Otherwise it is considered a name-based vhost.
ServerName
fields, a name-based vhost
defaults to the address given first in the VirtualHost
--- 120,130 ----
ServerName
fields and to classify the vhost as either
! an ip-based vhost or a name-based vhost. A vhost is
! considered a name-based vhost if any of its address set overlaps the
! main_server (the port associated with each address must match the
! main_server's Port
). Otherwise it is considered an ip-based
! vhost.
ServerName
fields, a name-based vhost
defaults to the address given first in the VirtualHost
***************
*** 141,147 ****
find_virtual_server
: When the connection is first made
by the client, the local ip address (the ip address to which the client
connected) is looked up in the server list. A vhost is matched if it
! is an ip-based vhost, and the ip address matches and the port matches
(taking into account wildcards).
find_virtual_server
: When the connection is first made
by the client, the local ip address (the ip address to which the client
connected) is looked up in the server list. A vhost is matched if it
! is an ip-based vhost, the ip address matches and the port matches
(taking into account wildcards).
Port
field of the connection vhost. If there's
a mismatch then the vhost used for the request is the connection vhost.
! (This is probably a bug.)
Port
field of the connection vhost. If there's
a mismatch then the vhost used for the request is the connection vhost.
! (This is a bug, see observations.)
ServerName
and Port
.
VirtualHost
directive for this vhost. (n.b. this
! assumes Dean's "VirtualHost confusion" patch is accepted.)
ServerAlias
given for the vhost.
--- 203,209 ----
ServerName
and Port
.
VirtualHost
directive for this vhost.
ServerAlias
given for the vhost.
***************
*** 275,281 ****
another ServerPath
directive that appears later in
the configuration file, then the former will always be matched
and the latter will never be matched. (That is assuming that no
! Host header was available to disambiguate the two.)
--- 278,301 ----
another ServerPath
directive that appears later in
the configuration file, then the former will always be matched
and the latter will never be matched. (That is assuming that no
! Host header was available to disambiguate the two.)
Port
statement that doesn't match the main_server
! Port
then it will be considered an ip-based vhost.
! Then find_virtual_server
will match it (because
! the ports associated with each address in the address set default
! to the port of the main_server) as the connection vhost. Then
! check_hostalias
will refuse to check any other name-based
! vhost because of the port mismatch. The result is that the vhost
! will steal all hits going to the main_server address.
!
! ServerName
resolves to the wrong address
! then all the name-based vhosts will be parsed as ip-based vhosts.
! Then the last of them will steal all the hits.