修改redmine默认安装访问的URL(/redmine)

1. Remove the “prefix=/redmine” entry from your /apps/redmine/config/mongrel_cluster.yml.

2. Replace the /apps/redmine/conf/redmine.conf file for this one:


ServerAdmin info @ example.com
ServerName www. example. com
ServerAlias example.com
ErrorLog "logs/rubystack_apache_error_log"
CustomLog "logs/rubystack_apache_access_log" combined
# this not only blocks access to .svn directories, but makes it
# appear as though they aren't even there, not just that they are
# forbidden

ErrorDocument 403 /404.html
Order allow,deny
Deny from all
Satisfy All

# This passes through remote_user to mongrel
RewriteEngine On
# Redirect non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://rubystackcluster%{REQUEST_URI} [P,QSA,L]



BalancerMember http://127.0.0.1:3001
BalancerMember http://127.0.0.1:3002


3. Restart your Redmine Stack: /ctlscript.sh restart

注意: Windows环境下,第2步:Edit /apps/redmine/scripts/serviceinstall.bat and remove the prefix entry " —prefix /redmine"

你可能感兴趣的:(软件生命周期)