[Fusionforge-commits] r9640 - trunk/gforge/etc/httpd.d

Christian Bayle cbayle at libremir.placard.fr.eu.org
Thu Apr 29 00:41:33 CEST 2010


Author: cbayle
Date: 2010-04-29 00:41:33 +0200 (Thu, 29 Apr 2010)
New Revision: 9640

Modified:
   trunk/gforge/etc/httpd.d/07maindirhttp.vhost.ssl
Log:
Readd lines for mediawiki, will be reworked


Modified: trunk/gforge/etc/httpd.d/07maindirhttp.vhost.ssl
===================================================================
--- trunk/gforge/etc/httpd.d/07maindirhttp.vhost.ssl	2010-04-28 22:00:36 UTC (rev 9639)
+++ trunk/gforge/etc/httpd.d/07maindirhttp.vhost.ssl	2010-04-28 22:41:33 UTC (rev 9640)
@@ -95,6 +95,27 @@
 	    ProxyPassReverse http://127.0.0.1:8081/
 	</Location>
 	##### COPY of 06maindirhttp end #####
+	##### COPY of 61plugin-mediawiki begin #####
+RedirectMatch 301 ^({sys_urlprefix}plugins/mediawiki/wiki/[-a-zA-Z0-9_]*)/*$ $1/index.php
+AliasMatch ^{sys_urlprefix}plugins/mediawiki/wiki/[-a-zA-Z0-9_]*/index.php {usr_share_gforge}/www/plugins/mediawiki/index.php
+AliasMatch ^{sys_urlprefix}plugins/mediawiki/wiki/([-a-zA-Z0-9_]*)/images/(.*) {var_lib_gforge}/plugins/mediawiki/projects/$1/images/$2
+
+<Directory {var_lib_gforge}/plugins/mediawiki>
+        Options +FollowSymLinks -Indexes
+        AllowOverride All
+        order allow,deny
+        allow from all
+        # Allow mediawiki to connect to gforge
+        Include {gforge_etc}/httpd.secrets
+        php_admin_value include_path "{sys_custom_path}:/etc/gforge:{usr_share_gforge}:{usr_share_gforge}/www/include:{usr_share_gforge}/plugins:/usr/share/php:."
+</Directory>
+
+# some directories must be protected
+<DirectoryMatch {var_lib_gforge}/plugins/mediawiki/projects/[-a-zA-Z0-9_]*/images>
+        Options -FollowSymLinks
+        AllowOverride None
+</DirectoryMatch>
+	##### COPY of 61plugin-mediawiki end #####
 	<IfModule mod_ssl.c>
 		SSLEngine on
 		SSLCertificateFile {sys_sslcrt}




More information about the Fusionforge-commits mailing list