Forum Discussion

mgriffin22_1082's avatar
mgriffin22_1082
Icon for Nimbostratus rankNimbostratus
Mar 17, 2010

"2 way rewrite"

I'm transitioning from some Bluecoat reverse proxies to F5 LTM's, and i'm having a problem with an iRule to match what has been done in the Bluecoat.

 

 

Bluecoat refers to this as a "two way rewrite", and it does this:

 

 

If a customer types in "https://www.foo.com/", the Bluecoat changes that to "https://abc.xxx.com/mobile", however, the customer still sees it as the original URL and isnt aware of the rewrite (so the bluecoat changes it on the way in, and then changes it back on the way out). Anything in the uri is just appended, btw, so another example is the customer sees "https://www.foo.com/default.aspx?_ufps-645575" then this is sent to the server - "https://abc.xxx.com/mobile/default.aspx?_ufps-645575".

 

 

How would this be accomplished in the F5? My current iRule does the modifications, but the user sees the new url, and we want to hide all that from the end user.

 

 

TIA!

 

Mike

 

 

p.s. Bluecoat has a white paper on this here (they also refer to it as a "TWURL"):

 

http://www.bluecoat.com/support/self-service/6/twurl.html
  • I believe the ProxyPass iRule will fit this requirement. Have a look here: http://devcentral.f5.com/wiki/default.aspx/iRules/ProxyPassV10.html

     

     

    -Matt