[packages/wordpress] apache 2.x/2.4 compatible config

glen glen at pld-linux.org
Thu Jun 6 13:06:17 CEST 2013


commit 2e9ab7da0b406ba5875095569d47cd5deebb6ca0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jun 6 14:05:45 2013 +0300

    apache 2.x/2.4 compatible config

 apache.conf | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/apache.conf b/apache.conf
index 0bc918f..0b587df 100644
--- a/apache.conf
+++ b/apache.conf
@@ -1,7 +1,14 @@
 Alias /wordpress /usr/share/wordpress
 
 <Directory /usr/share/wordpress>
-	Allow from all
+	<IfModule mod_authz_core.c>
+		# Apache 2.4
+		Require all granted
+	</IfModule>
+	<IfModule !mod_authz_core.c>
+		Allow from all
+	</IfModule>
+
 	php_admin_flag engine on
 	php_admin_value open_basedir "/usr/share/wordpress:/etc/webapps/wordpress"
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wordpress.git/commitdiff/2e9ab7da0b406ba5875095569d47cd5deebb6ca0



More information about the pld-cvs-commit mailing list