Erik_Durand_277
Aug 31, 2008Nimbostratus
uri redirect to pool
I am an iRule novice and I am trying to create an iRule that will redirect to two different pools based on URI. So far I have come up with the following with the iRule editor, but need to validate this will work as well as have a way of specifying a default pool:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*/us/*" { pool pool_us }
"*/uk/*" { pool pool_uk }
}
}
Does this look correct? How do I specify a default pool?
Thanks in advance!