20 lines
531 B
Plaintext
20 lines
531 B
Plaintext
<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>
|