[packages/js-phpjs] unified apache config

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


commit 70fcfd5909d9a998c8ccbaa59bcc57f0a1d3dead
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Aug 27 17:15:36 2013 +0300

    unified apache config

 apache.conf   | 10 +++++++++-
 js-phpjs.spec |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/js-phpjs.spec b/js-phpjs.spec
index 8136ca2..fce095e 100644
--- a/js-phpjs.spec
+++ b/js-phpjs.spec
@@ -2,7 +2,7 @@ Summary:	Use PHP functions in JavaScript
 Name:		js-phpjs
 # there seems not to be any unified version
 Version:	0.1
-Release:	3
+Release:	4
 License:	GPL, MIT
 Group:		Applications/WWW
 Source0:	https://github.com/kvz/phpjs/tarball/master/%{name}.tgz
diff --git a/apache.conf b/apache.conf
index 65161bc..b353f8e 100644
--- a/apache.conf
+++ b/apache.conf
@@ -1,4 +1,12 @@
 Alias /js/phpjs/ /usr/share/phpjs/
 <Directory /usr/share/phpjs>
-	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>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/js-phpjs.git/commitdiff/70fcfd5909d9a998c8ccbaa59bcc57f0a1d3dead



More information about the pld-cvs-commit mailing list