[packages/php-xcache] multi apache version config

glen glen at pld-linux.org
Tue Oct 29 20:32:09 CET 2013


commit 71c7be5e3b47861de9511354d82cf7c38c746b76
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Oct 29 21:29:26 2013 +0200

    multi apache version config

 php-xcache.spec    | 3 ++-
 xcache-apache.conf | 9 ++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/php-xcache.spec b/php-xcache.spec
index c8c531c..2ff96c4 100644
--- a/php-xcache.spec
+++ b/php-xcache.spec
@@ -6,7 +6,7 @@ Summary:	%{modname} - PHP opcode cacher
 Summary(pl.UTF-8):	%{modname} - buforowanie opcodów PHP
 Name:		%{php_name}-%{modname}
 Version:	3.0.1
-Release:	1
+Release:	3
 License:	BSD
 Group:		Development/Languages/PHP
 Source0:	http://xcache.lighttpd.net/pub/Releases/%{version}/xcache-%{version}.tar.bz2
@@ -41,6 +41,7 @@ Summary:	WEB interface for xCache
 Group:		Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	webapps
+Requires:	webserver(access)
 Requires:	webserver(php) >= 5.0
 
 %description web
diff --git a/xcache-apache.conf b/xcache-apache.conf
index aa3e788..bb6ad4d 100644
--- a/xcache-apache.conf
+++ b/xcache-apache.conf
@@ -5,5 +5,12 @@
 
 Alias /xcache /usr/share/xcache
 <Directory /usr/share/xcache>
-	Allow from 127.0.0.1
+	# Apache 2.x
+	<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-xcache.git/commitdiff/7624a6a5c8c622ad897319fb69cc4ee7172d8c77



More information about the pld-cvs-commit mailing list