Forum Moderators: phranque
My system is composed of a reverse proxy(Apache 2.046) and a backend webserver (Oracle HTTP Server).
To connect to a web application on the back end web server, the Internet user connect to reverse proxy via HTTPS and the reverse proxy forward the request to backend webserver via HTTP.
Example :
Internet user type :
[myreverseproxy...]
The reverse proxy translate this to :
[mybackendserver...]
The problem is myWebApp do a redirect like this:
[myreverseproxy...]
How can I config the reverse proxy to change the redirect URL to :
[myreverseproxy...]
Thank you in advance
I've not used reverse proxy on Apache 2.x, but on 1.x you need to use the "ProxyPassReverse" directive to rewrite location headers in redirects.
[httpd.apache.org...]
I've got already ProxyPassReverse.
My web application is a java servlet, and it saw the request from the client as : [myreverseproxy...] then it build a reply [myreverseproxy...]
My Idea is that when this reply arrive at the reverse proxy I'll tell apache to change it to :
[myreverseproxy...]
before return it to web browser.
I've tried some tricks with mod_rewrite without success.
Do you have any idea.
Thank you.