본문 바로가기

IT/Tips

Bitnami Redmine Document Root 변경 방법

Bitnami Redmine을 설치하면 기본접속 URL은 http://도메인명(IP)/redmine 으로 /redmine을 제거하기 위해서는 아래 절차를 따르면 된다.


1.    BitNami Redmine Stack 서비스를 종료후 제거

> CD \<installdir>
> serviceinstall.bat UNINSTALL

 

2.    Edit the installdir/apps/redmine/scripts/serviceinstall.bat 파일에서 접두사 " —prefix /redmine" 제거한다.

 

3.    <installdir>/apps/redmine/conf/redmine.conf 파일을 아래와 같이 수정한다

<VirtualHost *:80>

  ServerAdmin webmaster@your_server_name

  ServerName your_server_name.your_domain_name.local

  ServerAlias your_server_name

 

  # 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://redminecluster%{REQUEST_URI} [P,QSA,L]

</VirtualHost>

 

ProxyPass / balancer://redminecluster

ProxyPassReverse / balancer://redminecluster

 

<Proxy balancer://redminecluster>

  BalancerMember http://127.0.0.1:3001

  BalancerMember http://127.0.0.1:3002

</Proxy>

 

4.    서비스 재설치

> cd “C:\Program Files\BitNami Redmine Stack\apps\redmine\scripts”
> serviceinstall.bat UNINSTALL
> serviceinstall.bat INSTALL

 

5.    서비스를 시작한다.