[packages/php-eaccelerator] support multiple apache versions

glen glen at pld-linux.org
Tue Apr 29 08:35:27 CEST 2014


commit d48a00fd323f4b87782fe8c9dce5f7d7a54a2036
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Apr 29 09:35:01 2014 +0300

    support multiple apache versions

 apache.conf | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/apache.conf b/apache.conf
index 316b5f7..d32839b 100644
--- a/apache.conf
+++ b/apache.conf
@@ -1,5 +1,12 @@
 Alias /eaccelerator /usr/share/eaccelerator
 <Directory /usr/share/eaccelerator/>
-	Order allow,deny
-	Allow from 127.0.0.1
+	# Apache 2.x
+	<IfModule !mod_authz_core.c>
+		Order allow,deny
+		Allow from 127.0.0.1
+	</IfModule>
+	# Apache 2.4
+	<IfModule mod_authz_core.c>
+		Require local
+	</IfModule>
 </Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-eaccelerator.git/commitdiff/d48a00fd323f4b87782fe8c9dce5f7d7a54a2036



More information about the pld-cvs-commit mailing list