[Fusionforge-commits] r11558 - trunk/src/plugins/oslc/etc/httpd.d

Sabri LABBENE labbenes at libremir.placard.fr.eu.org
Wed Nov 17 15:54:20 CET 2010


Author: labbenes
Date: 2010-11-17 15:54:20 +0100 (Wed, 17 Nov 2010)
New Revision: 11558

Modified:
   trunk/src/plugins/oslc/etc/httpd.d/plugin-oslc.inc
Log:
Fix Apache configuration for oslc plugin.

Modified: trunk/src/plugins/oslc/etc/httpd.d/plugin-oslc.inc
===================================================================
--- trunk/src/plugins/oslc/etc/httpd.d/plugin-oslc.inc	2010-11-17 14:27:18 UTC (rev 11557)
+++ trunk/src/plugins/oslc/etc/httpd.d/plugin-oslc.inc	2010-11-17 14:54:20 UTC (rev 11558)
@@ -1,38 +1,15 @@
+Alias /plugins/oslc/ /usr/share/gforge/plugins/oslc/www/
+<Directory /usr/share/gforge/plugins/oslc/www/>
+	Options FollowSymLinks
+	Order allow,deny
+	allow from all
+	RewriteEngine On
+	RewriteBase /plugins/oslc/
 
-# This should be placed at the top of the directory whose path
-# corresponds to RewriteBase below.
-
-# The apache rewrite module should be activated for his to work
-
-# You should customize the following elements :
-#  - the RewriteBase bellow
-#  - optional : the TRACKER_TYPE (mantis (default), fusionforge, demo)
-#  - optional : the AUTH_TYPE (basic (default), oauth (for Mantis only))
-
-SetEnv TRACKER_TYPE fusionforge
-#SetEnv TRACKER_TYPE mantis
-
-# HTTP Basic authentication
-SetEnv AUTH_TYPE basic
-# OAuth authorization (only supported for Mantis at the moment)
-#SetEnv AUTH_TYPE oauth
-
-# See application.ini for contextual behaviour depending on this variable
-SetEnv APPLICATION_ENV development
-
-
-# "Intercept" anything below the RewriteBase to redirect to index.php
-#  which will do the URL parsing and so on
-
-
-<Location plugins/oslc>
-RewriteEngine On
-RewriteBase /plugins/oslc/
-
-RewriteCond %{REQUEST_FILENAME} -s [OR]
-RewriteCond %{REQUEST_FILENAME} -l [OR]
-RewriteCond %{REQUEST_FILENAME} -d
-RewriteRule ^.*$ - [NC,L]
-RewriteRule ^.*$ index.php [NC,L]
-</Location>
-
+	RewriteCond %{REQUEST_FILENAME} -s [OR]
+	RewriteCond %{REQUEST_FILENAME} -l [OR]
+	RewriteCond %{REQUEST_FILENAME} -d
+	RewriteRule ^.*$ - [NC,L]
+	RewriteRule ^.*$ index.php [NC,L]
+	Include /etc/gforge/httpd.conf.d/secrets.inc
+</Directory>




More information about the Fusionforge-commits mailing list