Select Pool on URI causing Infinite loop..
Hello all..With the help of this group i've got an irule that will use a specific pool based on the URI path, which I've listed below. However it appears that is causing an infinite loop. I wasn't aware at the time that it would be a different URL at the time, but now I'm being told now the path could something like /shopping/SomeGUID/admin or /shopping/SomeGUID/Shipping or host of other URIs where the GUID changes. I changed the path to match one of the GUIDs and it worked, but as I mentioned I don't know what the GUIDs will be ahead of time. I did some searching through the forums and found some info on wildcards so I tried /shopping/* and you can see below I have /shopping* but still no joy.
Any thoughts or suggestions on to make this work so no matter what the URI is after "/shopping" it will always use the secure2.mydomain.com pool?
when HTTP_REQUEST {
switch -glob "[string tolower [HTTP::path]]" {
"/shopping*" -
"/path2*" {
pool secure2.mydomain.com
}
default {
pool secure.mydomain.com
}
}
}
Thanks,
Bob