修改redmine默认安装访问的URL(/redmine)
-
Remove the “prefix=/redmine” entry from your /apps/redmine/config/mongrel_cluster.yml.
-
Replace the /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>
- Restart your Redmine Stack: /ctlscript.sh restart
注意: Windows环境下,第2步:Edit /apps/redmine/scripts/serviceinstall.bat and remove the prefix entry " —prefix /redmine"