Can this take the place of an if else irule? I want to use a wildcard so that anything after /virtualdir/default/* goes to Pool_1 and then anything after /virtualdir/second/* goes to Pool_2
when HTTP_REQUEST {
if { [HTTP::uri] contains "/virtualdir/default"}{pool Pool_1}
elseif
{[HTTP::uri] contains "/virtualdir/second/viewproducts" or [HTTP::uri] contains "/virtualdir/second/ordersummary" or [HTTP::uri] contains "/virtualdir/second/billing" or [HTTP::uri] contains "/virtualdir/second/paybypaypal"}{pool Pool_2}}
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/virtualdir/second/*" { pool Pool_2 }
default {
pool Pool_1
}
}
}