I'm facing an issue when trying to configure apache 2.2 as a proxy reverse.
I've an application running at my backend server http://internal.mydomain.com/App1/, for now this URL is going to be the $URL, because I'm a new guy here and I'm not able to post more than 2 URL on my first post.
If on my proxy server I use the following configuration everything work fine
UseCanonicalName off UseCanonicalPhysicalPort off ProxyPreserveHost On ProxyPassReverseCookieDomain internal.mydomain.com external.mydomain.com ProxyPass /App1/ $URL connectiontimeout=10 timeout=60 ProxyPassReverse /App1/ $URL The URL to access is external.mydomain.com/App1/
But my boss wants to have a different URL for this, something like external.mydomain.com/my/app1/, so I tried with the following configuration
UseCanonicalName off UseCanonicalPhysicalPort off ProxyPreserveHost On ProxyPassReverseCookieDomain internal.mydomain.com external.mydomain.com ProxyPass /my/app1/ $URL connectiontimeout=10 timeout=60 ProxyPassReverse /my/app1/ $URL That should work but when I loading the webpage, the backend server is answering with this
Cache-Control: private Content-Type: text/html; charset=utf-8 Location: /App1/StartPage.aspx Server: Microsoft-IIS/8.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET X-UA-Compatible: IE=edge Date: Tue, 16 Aug 2016 21:25:01 GMT Content-Length: 144 //<html><head><title>Object moved</title></head><body> //<h2>Object moved to <a href="/App1/StartPage.aspx">here</a>.</h2> //</body></html> So, my question is, is there any way to rewrite on the fly anything coming from the backend ?