Forum Discussion

phipse's avatar
phipse
Icon for Altostratus rankAltostratus
Mar 03, 2019

LTM iRule Reverse Proxy redirect

Hi Guys, Sorry for the repeat post in advance. I'm trying to configure a reverse proxy (RP) using an iRule, but I can not get it to work. I'm a network engineer by trade, but I love learning this...
  • jaikumar_f5's avatar
    Mar 04, 2019

    Phipse,

    Have you tried using string map,

    when HTTP_REQUEST {
       if { [string tolower [HTTP::uri]] starts_with "/ucit" } {
          HTTP::uri [string map {"/ucit/" "/services/"} [HTTP::uri]]
          pool pool_Node4RP_Reg
       } else {
       pool pool_RTS_4400
       }
    }