]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/templates/default/status.conf.erb
Increase HSTS expiry
[chef.git] / cookbooks / apache / templates / default / status.conf.erb
index 25cda1a25651961ae59bc9bad6e7cfd83281094a..6b8b98ee7f8e19b13b2f6cab289ae46fd2a665b9 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 %>
+    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>