[packages/owncloud/DEVEL] Apache 2.2/2.4 compatible config

wiget wiget at pld-linux.org
Wed Jun 12 21:52:09 CEST 2013


commit 1e0c84478afba573fa8b97cda5b0dd82519d8d88
Author: Artur Frysiak <artur at frysiak.net>
Date:   Wed Jun 12 21:48:35 2013 +0200

    Apache 2.2/2.4 compatible config

 apache.conf | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/apache.conf b/apache.conf
index a52450e..595f163 100644
--- a/apache.conf
+++ b/apache.conf
@@ -17,9 +17,23 @@ Alias /owncloud /usr/share/owncloud
 		RewriteRule ^remote/(.*) remote.php [QSA,L]
 	</IfModule>
 	Options -Indexes
-	Allow from all
+	<IfModule mod_authz_core.c>
+	    # Apache 2.4
+	    Require all granted
+	</IfModule>
+	<IfModule !mod_authz_core.c>
+	    Order allow,deny
+	    Allow from all
+	</IfModule>
 </Directory>
 
 <Directory /usr/share/owncloud/data>
-	Deny from all
+	<IfModule mod_authz_core.c>
+	    # Apache 2.4
+	    Require all denied
+	</IfModule>
+	<IfModule !mod_authz_core.c>
+	    Order deny,allow
+	    Deny from all
+	</IfModule>
 </Directory>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/owncloud.git/commitdiff/1e0c84478afba573fa8b97cda5b0dd82519d8d88



More information about the pld-cvs-commit mailing list