Forum Discussion
Pconlan_71037
Aug 01, 2011Altocumulus
I use yet another variation similar to what Peter and Bhattman suggested:
switch -glob [string tolower [HTTP::path]]
{
"/test*" -
"/another_url_that_shouldnt_be_live/index.htm" { pool pooltest }
"/someOtherPool*" {pool poolother)
default {
pool poollive
}
}
I use HTTP::path, which just excludes the querystring, since I don't need that to makemy switching decision. I have about 8 paths in my switch statement and it works very well.