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

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

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

<VirtualHost *:8080>
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
<DirectoryMatch "^/.*/\.svn/">
ErrorDocument 403 /404.html
Order allow,deny
Deny from all
Satisfy All
</DirectoryMatch>
# 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]
</VirtualHost>

<Proxy balancer://rubystackcluster>
BalancerMember http://127.0.0.1:3001
BalancerMember http://127.0.0.1:3002
</Proxy>


3. Restart your Redmine Stack: <installdir>/ctlscript.sh restart

注意: Windows环境下,第2步:Edit <installdir>/apps/redmine/scripts/serviceinstall.bat and remove the prefix entry " —prefix /redmine"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值