components/apache2/patches/info.conf.in.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Tue, 18 Nov 2014 05:26:28 -0800
changeset 2223 2bbd29293854
parent 278 77b380ba9d84
permissions -rw-r--r--
18764604 Apache should not enable pkcs11 engine by default on T4/T4+ platforms

--- docs/conf/extra/httpd-info.conf.in.orig	Fri Nov 28 13:44:23 2008
+++ docs/conf/extra/httpd-info.conf.in	Fri Nov 28 13:47:18 2008
@@ -10,11 +10,15 @@
 # with the URL of http://servername/server-status
 # Change the ".example.com" to match your domain to enable.
 
+<IfModule mod_status.c>
 <Location /server-status>
     SetHandler server-status
     Order deny,allow
     Deny from all
-    Allow from .example.com
+    #Allow from .example.com
+
+    # Allow access from localhost
+    Allow from 127.0.0.1
 </Location>
 
 #
@@ -24,14 +28,21 @@
 #
 #ExtendedStatus On
 
+</IfModule>
+
 #
 # Allow remote server configuration reports, with the URL of
 #  http://servername/server-info (requires that mod_info.c be loaded).
 # Change the ".example.com" to match your domain to enable.
 #
+<IfModule mod_info.c>
 <Location /server-info>
     SetHandler server-info
     Order deny,allow
     Deny from all
-    Allow from .example.com
+    #Allow from .example.com
+
+    # Allow access from localhost
+    Allow from 127.0.0.1
 </Location>
+</IfModule>