Project

General

Profile

How do I configure https using redmine?

Added by Artur Nek over 15 years ago

I have a last version Redmine. How do I configure the system so that access to redmine worked on the https protocol. Give step-by-step guide where to look.


Replies (4)

RE: How do I configure https using redmine? - Added by Artur Nek over 15 years ago

Up!
HELP!
Is no one will help? Very need to customize it

RE: How do I configure https using redmine? - Added by Micha Kersloot over 15 years ago

Hi,

hmm.. Up!...

But, I would use apache with the mod-proxy to do the https stuff. And run Redmine on the default 3000 port.
Something like :
<VirtualHost *>

Alias /cgi-bin /usr/lib/cgi-bin
ServerAdmin  
ServerName ownit_sf
ServerAlias sf.own-it.nl
DocumentRoot /var/www/
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/sf_own-it_nl.crt
SSLCertificateKeyFile /etc/apache2/ssl/sf_own-it_nl.key
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
&lt;/VirtualHost&gt;

I configure that. but i have troubles - Added by Dmitry U. over 15 years ago

You should configure your apache to use SSL.
After that:

LoadModule proxy_module bin/mod_proxy.so
LoadModule proxy_http_module bin/mod_proxy_http.so
ProxyRequests Off
<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>
Alias /rm "C:/redmine/public" 
<Directory /rm>
    Options Indexes FollowSymLinks
    AllowOverride none
    Order allow,deny
    Allow from all
</Directory>

ProxyPass / http://127.0.0.1:3000/rm
ProxyPassReverse / http://127.0.0.1:3000/rm

nb: I start mongrel with:
mongrel_rails start -e production -a 127.0.0.1 -p 3000 --prefix /rm

But there is a big trouble in 0.7.3:
When you press "Login" button on "/login" page it kick you to "http://" protocol, and you have Bad request.
After you log in Redmine, press Sign Out button, it kick you to "http://" protocol again.

RE: How do I configure https using redmine? - Added by Eric Davis over 15 years ago

You need to add a Request Header so mongrel knows to generate https links:

RequestHeader set X_FORWARDED_PROTO 'https'

Eric

    (1-4/4)