]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/apache/templates/mod/info.conf.erb
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / templates / mod / info.conf.erb
1 <Location /server-info>
2     SetHandler server-info
3 <%- if @restrict_access -%>
4   <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
5     Require ip <%= Array(@allow_from).join(" ") %>
6   <%- else -%>
7     Order deny,allow
8     Deny from all
9     <%- if @allow_from and ! @allow_from.empty? -%>
10       <%- @allow_from.each do |allowed| -%>
11     Allow from <%= allowed %>
12       <%- end -%>
13     <%- else -%>
14     Allow from 127.0.0.1
15     Allow from ::1
16     <%- end -%>
17   <%- end -%>
18 <%- end -%>
19 </Location>