[packages/phorum] multiple apache version support

glen glen at pld-linux.org
Tue Sep 1 15:01:34 CEST 2015


commit 232d23fa1fed0d53ea717f0c05368722a9048cec
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Sep 1 16:01:12 2015 +0300

    multiple apache version support

 apache.conf | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/apache.conf b/apache.conf
index 43024b9..d25d8fd 100644
--- a/apache.conf
+++ b/apache.conf
@@ -1,7 +1,16 @@
 Alias /phorum /usr/share/phorum/htdocs
 <Directory /usr/share/phorum/htdocs>
 	AllowOverride None
-	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>
 
 	php_flag register_globals off
 </Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phorum.git/commitdiff/232d23fa1fed0d53ea717f0c05368722a9048cec



More information about the pld-cvs-commit mailing list