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

Marwan Gedeon <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #6 from Marwan Gedeon <[email protected]> ---
You are right, it matched the entry in ssl.conf which took priority over
vhosts.conf, but why? isn't _default_ which is present by default inside
ssl.conf supposed to be used for default values that are not set in a specific
<VirtualHost> ? I tried to replace  _default_ with * and same result:


VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:443                  is a NameVirtualHost
         default server dev.myserver.com (/etc/httpd/conf.d/ssl.conf:74)
         port 443 namevhost dev.myserver.com (/etc/httpd/conf.d/ssl.conf:74)
         port 443 namevhost dev.myserver.com (/etc/httpd/conf.d/vhosts.conf:8)
         port 443 namevhost dev2.myserver.com
(/etc/httpd/conf.d/vhosts.conf:28)
         port 443 namevhost qa.myserver.com (/etc/httpd/conf.d/vhosts.conf:47)
*:80                   is a NameVirtualHost
         default server dev.myserver.com (/etc/httpd/conf.d/vhosts.conf:8)
         port 80 namevhost dev.myserver.com (/etc/httpd/conf.d/vhosts.conf:8)
         port 80 namevhost dev2.myserver.com (/etc/httpd/conf.d/vhosts.conf:28)
         port 80 namevhost qa.myserver.com (/etc/httpd/conf.d/vhosts.conf:47)
Syntax OK

You said 'ssl.conf' loaded before 'vhosts.conf' which could explain the
problem, but shouldn't the behavior be that matching happens with the closest
match?  

Here's something which makes me uncertain about the behavior of _default_:
Currently I only have one <VirtualHost _default_:443> Entry in ssl.conf which
includes the SSL specific configuration (certificate location, etc.) If this
entry was not used by all <VirtualHost dev?.myserver.com:443> entries inside
vhosts.conf, then how come SSL is working correctly for all of them? This made
me think that the <VirtualHost _default_:443> will be used to provide default
values that are not defined in the other <VirtualHost> entries, and it's the
desirable effect, to avoid having to put the same details in each
<VirtualHost>, a little bit like the main configuration which is used to
provide default values when not set in the specific <VirtualHost> entry for
HTTP.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to