bugzilla | 31 May 2012 04:43
Picon
Favicon

[Bug 53334] New: non * name-based vhosts sometimes short-circut ServerName/ServerAlias

https://issues.apache.org/bugzilla/show_bug.cgi?id=53334

          Priority: P2
            Bug ID: 53334
          Assignee: docs <at> httpd.apache.org
           Summary: non * name-based vhosts sometimes short-circut
                    ServerName/ServerAlias
          Severity: normal
    Classification: Unclassified
                OS: Linux
          Reporter: covener <at> gmail.com
          Hardware: PC
            Status: NEW
           Version: 2.5-HEAD
         Component: Documentation
           Product: Apache httpd-2

when you use name-based vhosting and a non-wildcard host/ip argument to
<virtualhost>, httpd will accept the first  match between the incoming Host
header and the verbatim individual host/ip arguments to <virtualhost> without
ever checking ServerName/ServerAlias.

This never happens with * because the request hostname can't match *.

<virtualhost 1.2.3.4:80>
  ServerName www.example.com
</virtualhost>
<virtualhost 1.2.3.4:80>
  ServerName other.example.com
  ServerAlias 1.2.3.4
(Continue reading)

bugzilla | 31 May 2012 10:07
Picon
Favicon

[Bug 53334] non * name-based vhosts sometimes short-circut ServerName/ServerAlias

https://issues.apache.org/bugzilla/show_bug.cgi?id=53334

--- Comment #1 from Matus "fantomas" Uhlar <uhlar <at> fantomas.sk> ---
The related section is available in 1.3 and 2.0 docs, but not in 2.2:

The complete list of names in the VirtualHost  directive are treated just like
a ServerAlias (but are not overridden by any ServerAlias statement) if all
names resolve to the same address set. Note that subsequent Listen statements
for this vhost will not affect the ports assigned in the address set.

My question is, if this is still available, as it still denied creating of
default-only name-based virtual hosts

(using <VirtualHost *> might not be exactly what people want)

--

-- 
You are receiving this mail because:
You are the assignee for the bug.
bugzilla | 4 Jun 2012 01:37
Picon
Favicon

[Bug 53334] non * name-based vhosts sometimes short-circut ServerName/ServerAlias

https://issues.apache.org/bugzilla/show_bug.cgi?id=53334

Eric Covener <covener <at> gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Eric Covener <covener <at> gmail.com> ---
this is "fixed" from docs POV, but the jury is out on whether the behavior
should be supressable.

--

-- 
You are receiving this mail because:
You are the assignee for the bug.

Gmane