Forum Moderators: phranque

Message Too Old, No Replies

Reverse proxy setup and mod_rewrite

         

venkiw

8:29 pm on Jun 20, 2006 (gmt 0)



Hi,

We are implementing a reverse proxy for an oracle application server within a trusted zone (TZSERVER).

The reverse proxy server (RPSERVER) has the proxy pass and proxy pass reverse directives set to talk the (TZSERVER) using the DMZ and firewall settings.

However the original application on TZSERVER has hard coded embeded links which basically point to TZSERVER or IP which is within the trusted zone and those links will not work.

We would like to use the mod_rewrite functionality on the RPSERVER to rewrite to this url from a response.

Lets say the TZSERVER returns a link like [TZSERVER.mydomain.com:9099...]

Is it possible to rewrite the url as [RPSERVER.mydomain.com...] using the mod_rewrite module.

TIA

VW

jdMorgan

5:15 am on Jun 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I haven't tried it, but it should be possible using the [P] flag on RewriteRule.

Jim