2017年9月11日 星期一

[Bitnami][Archlinux] How to create two redmine at same bitnami server

  1. Edit /home/happy/webs/redmine/apache2/conf/bitnami/bitnami-apps-prefix.conf
# Bitnami applications installed in a prefix URL
Include "/home/happy/webs/redmine/apps/redmine-another/conf/httpd-prefix.conf"
Include "/home/happy/webs/redmine/apps/redmine/conf/httpd-prefix.conf"
  1. Edit above two configuration file separately.
/home/happy/webs/redmine/apps/redmine/conf/httpd-prefix.conf
Alias /redmine/ "/home/happy/webs/redmine/apps/redmine/htdocs/public/"
Alias /redmine "/home/happy/webs/redmine/apps/redmine/htdocs/public"

Include "/home/happy/webs/redmine/apps/redmine/conf/httpd-app.conf"
/home/happy/webs/redmine/apps/redmine-another/conf/httpd-prefix.conf
Alias /redmine-another/ "/home/happy/webs/redmine/apps/redmine-another/htdocs/public/"
Alias /redmine-another "/home/happy/webs/redmine/apps/redmine-another/htdocs/public"

Include "/home/happy/webs/redmine/apps/redmine-another/conf/httpd-app.conf"
    Edit “/home/freeman/webs/redmine/apps/redmine-another/conf/httpd-app.conf” separately
    RewriteEngine On
    RewriteRule /<none> / [L,R]
    
    <Directory "/home/freeman/webs/redmine/apps/redmine-another/htdocs/public">
        Options -MultiViews
        AllowOverride All
        <IfVersion < 2.3 >
            Order allow,deny
            Allow from all
        </IfVersion>
        <IfVersion >= 2.3>
            Require all granted
        </IfVersion>
    
        PassengerEnabled on
        SetEnv RAILS_RELATIVE_URL_ROOT "/redmine-another"
        PassengerAppRoot "/home/freeman/webs/redmine/apps/redmine-another/htdocs/"
        <IfModule pagespeed_module>
            ModPagespeedDisallow "*"
        </IfModule>
    
    
        Include "/home/freeman/webs/redmine/apps/redmine-another/conf/banner.conf"
    </Directory>
    PassengerPreStart http://127.0.0.1:8081/redmine-another
  1.  Restart server
    bash ctlscript.sh restart
  2. Browse webpage separately
    http://127.0.0.1:8081/redmine/projects
http://127.0.0.1:8081/redmine-another/projects
sucessfully

0 意見:

張貼留言