欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-05-19 16:26:18
...
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"