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

Apache redirect to different port for docker container ( Redmine )

user4153
1#
user4153 Published in September 21, 2018, 2:56 am

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?

share|improve this question

1 Answer 1

active oldest votes
up vote 0 down vote
You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO