[packages/apache-php-fcgi: 7/7] make apache config apache 2.4 compatible

glen glen at pld-linux.org
Tue May 26 18:09:02 CEST 2015


commit df585f07f45db72d1c6613a5fd2e58fff3dfb815
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue May 26 19:06:37 2015 +0300

    make apache config apache 2.4 compatible

 apache.conf | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/apache.conf b/apache.conf
index e25d256..d8da277 100644
--- a/apache.conf
+++ b/apache.conf
@@ -5,7 +5,15 @@
 	ScriptAlias /php-fcgi /usr/bin/php56.fcgi
 	<Location "/php-fcgi">
 		SetHandler fastcgi-script
-		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>
 	</Location>
 
 	Action application/x-httpd-php-fcgi /php-fcgi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apache-php-fcgi.git/commitdiff/df585f07f45db72d1c6613a5fd2e58fff3dfb815



More information about the pld-cvs-commit mailing list