[packages/php-pecl-memcache] apache 1.3-2.4 comptible config
    glen 
    glen at pld-linux.org
       
    Tue Apr 21 15:47:23 CEST 2015
    
    
  
commit 5ec9059bc60ed7d070f4ccf2af136977653116c6
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Apr 21 16:38:06 2015 +0300
    apache 1.3-2.4 comptible config
 memcache-apache.conf | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/memcache-apache.conf b/memcache-apache.conf
index dbcfcc2..a4474b6 100644
--- a/memcache-apache.conf
+++ b/memcache-apache.conf
@@ -5,5 +5,13 @@ Alias /memcache.php /usr/share/memcache/memcache.php
 	# IMPORTANT: if you allow from elsewhere, be sure to change admin
 	# username/password in config.php otherwise you make your page password easily
 	# guessable.
-	Allow from 127.0.0.1
+
+	# Apache < 2.4
+	<IfModule !mod_authz_core.c>
+		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-pecl-memcache.git/commitdiff/5ec9059bc60ed7d070f4ccf2af136977653116c6
    
    
More information about the pld-cvs-commit
mailing list