Forum Discussion
Steve_M__153836
Nimbostratus
Here is a tutorial: iRules 101 - Selecting pools, nodes
This should work for you. Your port number is controlled in the pool itself so there is no need to specify that in any way. Also depending on the use case you may want to use "contains" or "starts_with" instead of "eq" in the second and third condition of this iRule.
when HTTP_REQUEST {
if { [HTTP::uri] eq "/" } {
pool bigip
} elseif { [string tolower [HTTP::uri]] eq "/blog" } {
pool bigip2
} elseif { [string tolower [HTTP::uri]] eq "/application" } {
pool bigip3
}
If no pool is configured in the virtual as a default/fallback
default { pool bigip }
}
Ron_130795
Jul 15, 2014Nimbostratus
Thanks Steve. I appreciate your help.