Home Apache redirect to different port for docker container ( Redmine )
Reply: 1

Apache redirect to different port for docker container ( Redmine )

Mike
1#
Mike Published in 2017-12-05 21:39:22Z

Hello I am working a project to run Drupal web page and Redmine on the same server. Drupal is main web and using 80 and 443. Redmine is on docker and using 3000 port.

Using httpd proxy setting, I was able to get the Redmine page.

ProxyPreserveHost On
ProxyPass /redmine http://127.0.0.1:3000/
ProxyPassReverse /redmine http://127.0.0.1:3000/
ProxyPass /stylesheets http://127.0.0.1:3000/stylesheets/
ProxyPassReverse /stylesheets http://127.0.0.1:3000/stylesheets/
ProxyPass /javascripts http://127.0.0.1:3000/javascripts/
ProxyPassReverse /javascripts http://127.0.0.1:3000/javascripts/
ProxyPass /images http://127.0.0.1:3000/images
ProxyPassReverse /images http://127.0.0.1:3000/images

However, when I click buttons on the redmine page such as project, login, register. It's redirected to main domain.

I would like to get www.example.com/redmine/login

but it's redirected to www.example.com/login

How can I resolve this issue?

Aleksandar Pavić
2#
Aleksandar Pavić Reply to 2017-12-06 20:50:20Z

To configure Redmine's URI, you can do it from Redmine itself, navigate to

admin | settings

and enter desired configuration to Host name and path field

And click save.

Additionally, depending upon how Redmine is deployed, deployment specific configuration can be applied, as described on Redmine wiki: http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.400458 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO