Forum Discussion
WaterlooSysAdmi
Cirrus
Aug 28, 2019IRule - Routing
Hello, I need to apply two iRules to a virtual server. One that routes traffic to a certain pool of servers based on the release version in url, 8.32.4. Say https://test.abc.com/dr=dfgv8.32.4...
Aug 28, 2019
Hi,
when HTTP_REQUEST {
if { [HTTP::uri] contains "8.32.4" } {
pool pool_A
} elseif { [HTTP::cookie exists "cookieName"] } {
pool pool_B
}
}
If the version number is at end of the uri, you can use "ends_with" operator.
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "8.32.4" } {
pool pool_A
} elseif { [HTTP::cookie exists "cookieName"] } {
pool pool_B
}
}
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