1

I am currently trying to get an instance of redmine up and running. I have been successful so far, however I am now hitting a road block with the apache / unicorn configuration.

The following conf is included with my httpd.conf for apache.

ProxyPass /redmine balancer://redmine
ProxyPassReverse /redmine balancer://redmine

<Proxy balancer://redmine>
     BalancerMember http://127.0.0.1:4000
     BalancerMember http://127.0.0.1:4001
     BalancerMember http://127.0.0.1:4002
     BalancerMember http://127.0.0.1:4003
     Order deny,allow
     Allow from all
    </Proxy>

The issue is that The pages generate do not have any formatting or assets, and all the links do not include host/redmine prefix

0

You need to tell Redmine that you're serving on a path that isn't the domain root. As per the fine wiki, you need to add the following line at the bottom of your config/environment.rb:

Redmine::Utils::relative_url_root = "/redmine"

Then restart.

2
  • I forgot about that lol, Thanks so much that solved my problem =) Jul 9 '12 at 15:59
  • It is cleaner to use config/additional_environment.rb, as config/environment.rb is meant to be managed by Redmine, is under their version control and may change over time. See my other answer: serverfault.com/a/850827/175421
    – vog
    May 18 '17 at 5:59
1

The cleanest way is to create config/additional_environment.rb with:

config.relative_url_root = '/redmine'

followed by restarting your Redmine instance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.