]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/templates/default/status.conf.erb
Add apache cookbook
[chef.git] / 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
new file mode 100644 (file)
index 0000000..25cda1a
--- /dev/null
@@ -0,0 +1,26 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+<IfModule mod_status.c>
+
+ExtendedStatus On
+
+<Location /server-status>
+    SetHandler server-status
+    Order deny,allow
+    Deny from all
+<% node.ipaddresses do |address| -%>
+    Allow from <%= address %>
+<% end -%>
+    Allow from 127.0.1.1
+    Allow from 127.0.0.1
+    Allow from ::1
+<% @hosts.each do |host| -%>
+    Allow from <%= host %>
+<% end -%>
+</Location>
+
+<IfModule mod_proxy.c>
+    ProxyStatus On
+</IfModule>
+
+</IfModule>