aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/apache/manifests/base.pp2
-rw-r--r--modules/apache/templates/info.conf38
2 files changed, 40 insertions, 0 deletions
diff --git a/modules/apache/manifests/base.pp b/modules/apache/manifests/base.pp
index 4e1d6ed4..1fbbc28c 100644
--- a/modules/apache/manifests/base.pp
+++ b/modules/apache/manifests/base.pp
@@ -24,6 +24,8 @@ class apache::base {
"${conf_d}/customization.conf":
content => template('apache/customization.conf'),
require => Package[$apache::var::pkg_conf];
+ "${conf_d}/info.conf":
+ content => template('apache/info.conf');
'/etc/httpd/conf/vhosts.d/00_default_vhosts.conf':
content => template('apache/00_default_vhosts.conf'),
require => Package[$apache::var::pkg_conf];
diff --git a/modules/apache/templates/info.conf b/modules/apache/templates/info.conf
new file mode 100644
index 00000000..1ca918ea
--- /dev/null
+++ b/modules/apache/templates/info.conf
@@ -0,0 +1,38 @@
+#
+# Get information about the requests being processed by the server
+# and the configuration of the server.
+#
+# Required modules: mod_authz_core, mod_authz_host,
+# mod_info (for the server-info handler),
+# mod_status (for the server-status handler)
+
+#
+# Allow server status reports generated by mod_status,
+# with the URL of http://servername/server-status
+# Allow access only from localhost
+
+<Location /server-status>
+ SetHandler server-status
+ Order deny,allow
+ Deny from all
+ Allow from 127
+</Location>
+
+#
+# ExtendedStatus controls whether Apache will generate "full" status
+# information (ExtendedStatus On) or just basic information (ExtendedStatus
+# Off) when the "server-status" handler is called. The default is Off.
+#
+#ExtendedStatus On
+
+#
+# Allow remote server configuration reports, with the URL of
+# http://servername/server-info (requires that mod_info.c be loaded).
+# Allow access only from localhost
+#
+<Location /server-info>
+ SetHandler server-info
+ Order deny,allow
+ Deny from all
+ Allow from 127
+</Location>