We are facing a strange issue with the Apache Http Reverse Proxy mapping , We are using Apache 2.2 version , the problem is mentioned below.
Problem statement:
We are using Apache in front of our Application server which sits behind our firewall, we use apache’s mod_proxyand mod_proxy_http modules to map our reverse proxies
We have a reverse proxy mappings for both these web Applications. one is /app1/ and the other is the /content/.
Something like below
ProxyPass /app1/ "http://localhost:9080/application1/"
ProxyPassReverse /app1/ "http://localhost:9080/application1/"
proxyPass /content/ "http://localhost:8090/application2/"
proxyPassReverse /content/ "http://localhost:8090/application2/"
The strange problem we are seeing is with the /content mapping , when we access application1 through /app1/ proxy, apache is trying to find /content/environment.js file,
we observed this when we verified it’s access.log file , since we have /content mapped to application2, its hitting that application .
This behavior is not there if we change our proxy mapping from /content to /something to map application2 ,
This problem stopped us from moving further,
if any solution with respect to how we can disable apache from validating /content/environment.js this file, will be a great help
Thanks in Advance for all the support
Pavan