[packages/minify] apache multiversion config

glen glen at pld-linux.org
Sun Sep 1 10:08:28 CEST 2013


commit efd5420d0803136eef2c6ca7c433d66c6587b18e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Sep 1 11:07:46 2013 +0300

    apache multiversion config

 apache.conf | 10 +++++++++-
 minify.spec |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/minify.spec b/minify.spec
index 479178d..58d74fd 100644
--- a/minify.spec
+++ b/minify.spec
@@ -3,7 +3,7 @@
 Summary:	Combines, minifies, and caches JavaScript and CSS files on demand to speed up page loads
 Name:		minify
 Version:	2.1.5
-Release:	9
+Release:	10
 License:	New BSD License
 Group:		Applications/WWW
 #Source0:	https://minify.googlecode.com/files/%{name}-%{version}.zip
diff --git a/apache.conf b/apache.conf
index ffb5d70..cb08a6e 100644
--- a/apache.conf
+++ b/apache.conf
@@ -1,6 +1,14 @@
 Alias /min/ /usr/share/minify/
 <Directory /usr/share/minify>
-	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_value zlib.output_compression 0
 	<IfModule mod_rewrite.c>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/minify.git/commitdiff/efd5420d0803136eef2c6ca7c433d66c6587b18e



More information about the pld-cvs-commit mailing list