[DRE-commits] [redmine] 07/08: improve FastCGI config example

Antonio Terceiro terceiro at moszumanska.debian.org
Tue Sep 30 21:39:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository redmine.

commit 824ad3451a81a4558ed77101161c1dae2cedd616
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Mon Sep 22 11:36:02 2014 -0300

    improve FastCGI config example
    
    I could not make both the old and new examples work yet. :-(
---
 debian/doc/examples/apache2-host.conf | 36 ++++++++++++++++-------------------
 1 file changed, 16 insertions(+), 20 deletions(-)

diff --git a/debian/doc/examples/apache2-host.conf b/debian/doc/examples/apache2-host.conf
index 17e2a53..afa8091 100644
--- a/debian/doc/examples/apache2-host.conf
+++ b/debian/doc/examples/apache2-host.conf
@@ -1,22 +1,18 @@
-# These modules must be enabled : rewrite, fcgid
-# (mod_fastcgi is much harder to configure)
-# Configuration for http://localhost:8080
-<VirtualHost *:8080>
-	# FcgidInitialEnv for module mod_fcgid
-	FcgidInitialEnv RAILS_RELATIVE_URL_ROOT ""
-	FcgidInitialEnv X_DEBIAN_SITEID "default"
+# The modules rewrite (from the apache core) and fcgid (from the
+# libapache2-mod-fcdid package) must be enabled.
+<VirtualHost *:80>
+    # FcgidInitialEnv for module mod_fcgid
+    FcgidInitialEnv RAILS_ENV "production"
+    FcgidInitialEnv X_DEBIAN_SITEID "default"
 
-	Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/
-	DocumentRoot /usr/share/redmine/public
-	<Directory "/usr/share/redmine/public">
-		Options +FollowSymLinks +ExecCGI
-		Order allow,deny
-		Allow from all
-		RewriteEngine On
-		RewriteRule ^$ index.html [QSA]
-		RewriteRule ^([^.]+)$ $1.html [QSA]
-		RewriteCond %{REQUEST_FILENAME} !-f [OR]
-		RewriteCond %{REQUEST_FILENAME} dispatch.fcgi$
-		RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
-	</Directory>
+    Alias "/plugin_assets/" /var/cache/redmine/default/plugin_assets/
+    DocumentRoot /usr/share/redmine/public
+    <Directory "/usr/share/redmine/public">
+        Options +FollowSymLinks +ExecCGI
+        Order allow,deny
+        Allow from all
+        RewriteEngine On
+        RewriteCond %{REQUEST_FILENAME} !-f
+        RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
+    </Directory>
 </VirtualHost>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/redmine.git



More information about the Pkg-ruby-extras-commits mailing list