]> git.openstreetmap.org Git - chef.git/blob - cookbooks/apache/templates/default/info.conf.erb
Enable named based virtual hosts for https
[chef.git] / cookbooks / apache / templates / default / info.conf.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <IfModule mod_info.c>
4
5 <Location /server-info>
6     SetHandler server-info
7     Order deny,allow
8     Deny from all
9 <% node.ipaddresses do |address| -%>
10     Allow from <%= address %>
11 <% end -%>
12     Allow from 127.0.1.1
13     Allow from 127.0.0.1
14     Allow from ::1
15 <% @hosts.each do |host| -%>
16     Allow from <%= host %>
17 <% end -%>
18 </Location>
19
20 </IfModule>