Forum Discussion

saurabhk_321062's avatar
Icon for Nimbostratus rankNimbostratus
Aug 14, 2017

Need to redirect a specific URL to a particular node in a pool

I have 3 VIP: VIP1: VIP2: VIP3:


The pool members within these 3 VIPs are: member1: member2: member3:


I want to redirect a specific URL on a VIP on member Need to know how to proceed. As per my understanding I will need to create a iRule for this redirection. Kindly help in creating the same.


2 Replies

  • I hope your is resolving to VIP. And you want the traffic to be forwarded to a particular pool member if its starting with URI - /APICherwell, You dint say what the pool of the pool member is, hoping its 443, try the below. Where pool_name is the default pool consisting all the pool members. Map the below to the VIP and test it.

    when HTTP_REQUEST {
      if { [HTTP::uri] starts_with "/APICherwell" } {
        node 443
        log local0. "APICherwell uri traffic has come, specific pool member selected"
      } else {
        pool pool_name

    You can also use -

    pool pool_name member 443
    to choose a particular pool member inside a pool. Refer Article for selecting pool members.

  • Snl's avatar
    Icon for Cirrostratus rankCirrostratus

    try below


    when HTTP_REQUEST {
    if { [HTTP::uri] equals "" } {
       node 80
        else {
    pool default_pool  }} }