bitnami / vms

Bitnami VMs
https://bitnami.com
Other
203 stars 42 forks source link

[Redmine] Remove "/redmine" from the default URL #1426

Closed alvaroabril4 closed 5 months ago

alvaroabril4 commented 5 months ago

Hello,

After installing the Bitnami stack with Redmine for Windows (bitnami-redmine-5.0.3-0-windows-x64-installer.exe) I need to remove the sub-uri "/redmine" from the default URL, but I can't find a way to do it. I need the main URL to change from "https://my.domain.com/redmine" to "https://my.domain.com".

This stack has Apache. In the Redmine configuration (C:\Bitnami\redmine\apps\redmine\conf\httpd-prefix.conf) there is a reverse proxy configured on a load balancer with two servers.

I have tried to remove /redmine from the additional_environment.rb file (C:\Bitnami\redmine\apps\redmine\htdocs\config\additional_environment.rb) in the variable "config.action_controller.relative_url_root = '/redmine'", but it didn't work.

Do you know any solution to make this change?

Thanks

Best regards

jotamartos commented 5 months ago

Hi @alvaroabril4,

Please note that our installers were deprecated long ago. However, you should have a "bnconfig.exe" file inside the installdir/apps/redmine folder. That tool will help you move the application from /redmine to /.

bnconfig.exe --appurl /

You can learn a bit more about this tool here:

https://docs.bitnami.com/general/faq/configuration/understand-bnconfig/

Note: I suggest you take a backup of the entire installation directory before running that tool. This way you can recover the installation easily. You will need to stop the services, copy the entire directory and start the services again.

alvaroabril4 commented 5 months ago

Thank you very much, it worked.