X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d228f465b5bf9f5dffedcebad5c7fadcbba21cc3..1a062eb5304d0ef835313e5948053fcdccf20ecf:/cookbooks/apache/templates/default/info.conf.erb?ds=inline diff --git a/cookbooks/apache/templates/default/info.conf.erb b/cookbooks/apache/templates/default/info.conf.erb index fd3fb8e6f..a8a303a9f 100644 --- a/cookbooks/apache/templates/default/info.conf.erb +++ b/cookbooks/apache/templates/default/info.conf.erb @@ -4,16 +4,14 @@ SetHandler server-info - 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 -%>