Forum Moderators: phranque

Message Too Old, No Replies

Change the redirect URL to reverse proxy

         

binhxe

1:01 pm on Jun 19, 2003 (gmt 0)

10+ Year Member



Hi all,

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

dmorison

1:07 pm on Jun 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

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...]

binhxe

2:11 pm on Jun 19, 2003 (gmt 0)

10+ Year Member



Hi,

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.