Forum Discussion
Hector_Rodolfo
Nimbostratus
Dec 10, 2020iRule for pool usage instead of VIP(s)
Hi team, I quite new to iRule. And, I am trying to implement a common VIP, used to replace doing several independent VIPs. So, instead of doing new VIPs, use their existing pools and only new pool(...
Mayur_Sutare
MVP
Dec 10, 2020I 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
}
}