Wildcard the VirtualHost directive addresses
On systems where the site FQDN is mapped to the loopback interface in /etc/hosts, Apache doesn't apply the vhost configuration on incoming connections to other addresses/interfaces. Apache recommends wildcarding VirtualHost directives these days, and it's something we already hard-code in other modules (e.g. puppet-zuul). This _could_ conceivably cause complication for anyone trying to coinstall this module on a server hosting other sites without name-based hosting configured correctly, but that should be an increasingly unusual configuration. Change-Id: I11f5b586c4f7b42017c2eb78af4be87211343381
This commit is contained in:
parent
edfb6b3bef
commit
762bed13d4
@ -1,4 +1,4 @@
|
||||
<VirtualHost <%= scope.lookupvar("storyboard::application::hostname") %>:80>
|
||||
<VirtualHost *:80>
|
||||
<% if scope.lookupvar("storyboard::application::server_admin") != :undef %>
|
||||
ServerAdmin <%= scope.lookupvar("storyboard::application::server_admin") %>
|
||||
<% end %>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<VirtualHost <%= scope.lookupvar("storyboard::application::hostname") %>:80>
|
||||
<VirtualHost *:80>
|
||||
<% if scope.lookupvar("storyboard::application::server_admin") != :undef %>
|
||||
ServerAdmin <%= scope.lookupvar("storyboard::application::server_admin") %>
|
||||
<% end %>
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
</VirtualHost>
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost <%= scope.lookupvar("storyboard::application::hostname") %>:443>
|
||||
<VirtualHost *:443>
|
||||
<% if scope.lookupvar("storyboard::application::server_admin") != :undef %>
|
||||
ServerAdmin <%= scope.lookupvar("storyboard::application::server_admin") %>
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user