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

2 Answers2

1

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

config.relative_url_root = '/redmine'

followed by restarting your Redmine instance.

vog
  • 548
  • 5
  • 11
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.

womble
  • 95,029
  • 29
  • 173
  • 228
  • I forgot about that lol, Thanks so much that solved my problem =) – Rick Barrette Jul 09 '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: https://serverfault.com/a/850827/175421 – vog May 18 '17 at 05:59