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 11, 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
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects