Initial Chef repository
This commit is contained in:
19
cookbooks/apache2/templates/default/mods/info.conf.erb
Normal file
19
cookbooks/apache2/templates/default/mods/info.conf.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<IfModule mod_info.c>
|
||||
#
|
||||
# Allow server info reports generated by mod_info,
|
||||
# with the URL of http://servername/server-info
|
||||
# Uncomment and change the ".example.com" to allow
|
||||
# access from other hosts.
|
||||
#
|
||||
<Location /server-info>
|
||||
SetHandler server-info
|
||||
<% if node['apache']['version'] == '2.4' -%>
|
||||
Require local
|
||||
Require ip <%= node['apache']['info_allow_list'] %>
|
||||
<% else -%>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
Allow from <%= node['apache']['info_allow_list'] %>
|
||||
<% end -%>
|
||||
</Location>
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user