[packages/graphite-web] use apache 2.2/2.4 compatible config

glen glen at pld-linux.org
Thu Dec 3 21:04:53 CET 2015


commit 8d64dd343230de0885cb0357359e34a924b5b514
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Dec 3 22:03:59 2015 +0200

    use apache 2.2/2.4 compatible config
    
    see:
    https://www.pld-linux.org/packages/apache#apache_22_and_24_compatible_configs

 apache.conf | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/apache.conf b/apache.conf
index 011c418..28de647 100644
--- a/apache.conf
+++ b/apache.conf
@@ -21,13 +21,14 @@
 	</Location>
 </VirtualHost>
 
-# Apache 2.2
-# <Directory /usr/share/graphite>
-#	Allow from all
-# </Directory>
-
-# Apache 2.4
 <Directory /usr/share/graphite>
-    Require all granted
-    Allow from all
+	# Apache 2.x
+	<IfModule !mod_authz_core.c>
+		Order allow,deny
+		Allow from all
+	</IfModule>
+	# Apache 2.4
+	<IfModule mod_authz_core.c>
+		Require all granted
+	</IfModule>
 </Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/graphite-web.git/commitdiff/8d64dd343230de0885cb0357359e34a924b5b514



More information about the pld-cvs-commit mailing list