Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am attempting to run Redmine (RoR) through an Apache reverse proxy. Mongrel serves plain-text pages which Apache protects with SSL and serves to my users. The problem is that various links and redirects within Redmine send users to http:// instead of https:// .

The settings on the admin page are configured for https but this doesn't seem to help. I also added this line to environment.rb to solve a relative root problem (that fixed it, but not the https problem):

ActionController::AbstractRequest.relative_url_root = "/r/"

How can I force Redmine to always use https?

Note that a redirect won't work because my server only has :443 open and thus :80 requests wouldn't be seen to be rewritten. A rewrite of the site's data could work but seems less than ideal.

share|improve this question
up vote 3 down vote accepted

Each of these refer to setting X_FORWARDED_PROTO to 'https' in your Apache config:

Best of luck.

share|improve this answer
Awesome, thanks! – Michael Haren Aug 4 '09 at 14:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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