For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

pkinhyd1986_152's avatar
pkinhyd1986_152
Icon for Nimbostratus rankNimbostratus
Sep 14, 2014

Redirecting traffic to different pool based on URL context

Hi Friends, We have created one VIP and 2 pools on F5 Below the requirement If the URL address is https://www.abc.com/xyz/home.jsp Traffic will go to default pool: pool_1 If the URL address is https://www.abc.com/xyz/dashboard/home.jsp Traffic will go to another pool: pool_2 As i am in new in F5 so Please revert with exact irule

 

1 Reply

  • Hi mate,

    Have a go at this (untested for syntax + i just arrived at work ) 🙂

    when HTTP_REQUEST {
    set uri [string tolower [HTTP::uri]]
    
    In case you wish to add more URIs later
    switch -glob $uri {
    "/xyz/dashboard/*" {
        pool pool_2
          }
     default { 
         pool pool_1
            }
        }
    }