Forum Discussion

Sthefanie_Marq1's avatar
Sthefanie_Marq1
Icon for Nimbostratus rankNimbostratus
Oct 30, 2018

Redirect all traffic from URN to a node specific

How can i redirect all traffic from urn to a node specific? Example:

 

VS_EXAMPLE = 20.20.20.1 port 443

 

POOL_EXAMPLE with the follow pool members NODE_01 10.10.10.1 port 1000 should be the response of URN: /EXAMPLE01/ NODE_02 10.10.10.2 port 2000 should be the response of URN: /EXAMPLE02/

 

1 Reply

  • Hi,

    you can try this:

    when HTTP_REQUEST {
        if {[HTTP::path] starts_with /EXAMPLE01/ } {
            pool POOL_EXAMPLE member 10.10.10.1 1000
        } elseif {[HTTP::path] starts_with /EXAMPLE02/ } {
            pool POOL_EXAMPLE member 10.10.10.2 2000
        }
    }