<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>