I have an apache installed in a frontend server (server1), which is as reverse proxy. I have another server (server2) with tomcat that is running a webapp.
I configured my reverse proxy (server1) like that:
ProxyPass /app1/ ajp://server2:8009/app1/
ProxyPassReverse /app1/ https://www.external_domain_name.com/
When I connect to:
https://www.external_domain_name.com/app1/
my web app is working properly. In some pages, the web app redirects me (302) to another page.
Then, I am redirected to :
https://server1_internal_ip/app1/foo_bar
When I look to the http headers, the response header contains:
Status code: 302
Location: https://server1_internal_ip/app1/foo_bar
So, my conclusion ProxyPass is working properly, but the ProxyPassReverse is not.
Can you help me please to understand what's going wrong?
Thanks