]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/apache/templates/mod/info.conf.erb
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / apache / templates / mod / info.conf.erb
diff --git a/3rdparty/modules/apache/templates/mod/info.conf.erb b/3rdparty/modules/apache/templates/mod/info.conf.erb
new file mode 100644 (file)
index 0000000..1a025b7
--- /dev/null
@@ -0,0 +1,19 @@
+<Location /server-info>
+    SetHandler server-info
+<%- if @restrict_access -%>
+  <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
+    Require ip <%= Array(@allow_from).join(" ") %>
+  <%- else -%>
+    Order deny,allow
+    Deny from all
+    <%- if @allow_from and ! @allow_from.empty? -%>
+      <%- @allow_from.each do |allowed| -%>
+    Allow from <%= allowed %>
+      <%- end -%>
+    <%- else -%>
+    Allow from 127.0.0.1
+    Allow from ::1
+    <%- end -%>
+  <%- end -%>
+<%- end -%>
+</Location>