Difference between revisions of "Forcing HTTPS for redmine"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Redmine_configuration|Redmine configuration</yambe:breadcrumb> =Forcing HTTPS for redmine= To force redmine to use HTTPS for all requests first setup apache...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>Redmine_configuration|Redmine configuration</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Web based tools or applications]] > [[Redmine configuration]] > [[Forcing HTTPS for redmine]]
=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:
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:
Line 16: Line 15:


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.
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.
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Web based tools or applications]] > [[Redmine configuration]] > [[Forcing HTTPS for redmine]]

Latest revision as of 18:36, 28 July 2022

Home > CentOS > CentOS 6.x > Web based tools or applications > Redmine configuration > 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.


Home > CentOS > CentOS 6.x > Web based tools or applications > Redmine configuration > Forcing HTTPS for redmine