X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d228f465b5bf9f5dffedcebad5c7fadcbba21cc3..e93e0d3fc5b48738c68e8b6a075c0e53f68e37c0:/cookbooks/apache/templates/default/status.conf.erb diff --git a/cookbooks/apache/templates/default/status.conf.erb b/cookbooks/apache/templates/default/status.conf.erb index 25cda1a25..f78aa9402 100644 --- a/cookbooks/apache/templates/default/status.conf.erb +++ b/cookbooks/apache/templates/default/status.conf.erb @@ -6,16 +6,14 @@ ExtendedStatus On SetHandler server-status - Order deny,allow - Deny from all -<% node.ipaddresses do |address| -%> - Allow from <%= address %> +<% node.ipaddresses.sort.each do |address| -%> + Require ip <%= address %> <% end -%> - Allow from 127.0.1.1 - Allow from 127.0.0.1 - Allow from ::1 + Require ip 127.0.1.1 + Require ip 127.0.0.1 + Require ip ::1 <% @hosts.each do |host| -%> - Allow from <%= host %> + Require ip <%= host %> <% end -%>