How to change the servername/redmine to servername in url

Added by David Lorente over 1 year ago

Hello all,

On our Remine system we are facing the following issue, if someone types http://redmine.xxxxxx.com the redirectin it's correct to https://redmine.xxxx.com/redmine but when someone types https://redmine.xxxxxxxx.com is not redirecting directly to https://redmine.xxxxxxxx.com/redmine.

Our current configuration using in virtualhost of apache server is:

<Location /redmine>
RailsEnv production
RackBaseURI /redmine
Options -MultiViews
</Location>

but my question is the following, Can we apply the following configuration?

<Location />
RailsEnv production
RackBaseURI /
Options -MultiViews
</Location>

Environment:
Redmine version 3.4.6.stable
Ruby version 2.3.3-p222 (2016-11-21) [x86_64-linux-gnu]
Rails version 4.2.8
Environment production
Database adapter Mysql2
System Operator Debian9

Thanks for your help