]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/templates/default/status.conf.erb
Make sure the planet user is created by recipes which use it
[chef.git] / cookbooks / apache / templates / default / status.conf.erb
index 25cda1a25651961ae59bc9bad6e7cfd83281094a..f78aa9402b3eecf3aab18c18418baeef8640f962 100644 (file)
@@ -6,16 +6,14 @@ ExtendedStatus On
 
 <Location /server-status>
     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 -%>
 </Location>