[packages/js-json2] unified apache config

glen glen at pld-linux.org
Tue Aug 27 16:16:42 CEST 2013


commit 4560026c1aa1c1cf72b27b69b5f974acec4ee42b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Aug 27 17:16:32 2013 +0300

    unified apache config

 js-json2.spec | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/js-json2.spec b/js-json2.spec
index e000571..fea59d4 100644
--- a/js-json2.spec
+++ b/js-json2.spec
@@ -1,7 +1,7 @@
 Summary:	JSON in JavaScript
 Name:		js-json2
 Version:	20100320
-Release:	1
+Release:	3
 License:	Public Domain
 Group:		Applications/WWW
 Source0:	http://www.JSON.org/json2.js
@@ -37,7 +37,15 @@ fi
 cat > apache.conf <<'EOF'
 Alias /js/json2.js %{_appdir}/json2.js
 <Directory %{_appdir}>
-	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>
 </Directory>
 EOF
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/js-json2.git/commitdiff/4560026c1aa1c1cf72b27b69b5f974acec4ee42b



More information about the pld-cvs-commit mailing list