Forum Discussion
Mayur_Sutare
Dec 11, 2020MVP
I would recommend you to use LTM policy for this redirection. But if you want to do it using iRules, you can try below iRule.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/service1" }{
pool pool-service1-80
} elseif { [HTTP::uri] starts_with "/service2" }{
pool pool-service2-80
} elseif { [HTTP::uri] starts_with "/service3" } {
pool pool-service3-80
}
}