Forcing HTTPS for redmine

From Notes_Wiki
Revision as of 08:21, 9 September 2018 by Saurabh (talk | contribs)

<yambe:breadcrumb>Redmine_configuration|Redmine configuration</yambe:breadcrumb>

Forcing HTTPS for redmine

To force redmine to use HTTPS for all requests first setup apache on port 80 and 443 so that all incoming HTTP or HTTPS requests on standard ports are handled by apache. Then configure apache to redirect all HTTP requests for redmine virtual-host to HTTPS using:

Redirect permanent / https://<server-FQDN>/


Then configure apache to forward all requests received through HTTPS to webrick listening on port 3000 using:

    <Location />
        ProxyPass http://localhost:3000/
    </Location>

Any other way of redirecting may not result into good results and redmine application code is written such that it redirects users after login to page from where user was sent to login page. That is if user visits some issue page which requires login, then after login user is sent back to same issues page. Now this mechanism causes many problems in setting up good and secure HTTPS for redmine.


<yambe:breadcrumb>Redmine_configuration|Redmine configuration</yambe:breadcrumb>