Hi please help me out in writing irule for mapping the domain when we enter the uri “/gateway” as shown https://preview.infinitiusa.com/gateway then this request should be routed to the 10.36.124.4:8087 pool member
You can use this code:
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if {[HTTP::path] equals "/gateway" } {
pool $default_pool member 10.36.124.4 8087
} else {
pool $default_pool
}
}