gpayne_144568
Sep 29, 2014Nimbostratus
Switch Irule
I need to create an IRULE that takes a certain uri and redirects based on the start to specific pools. Would like to do this in switch format.
Any suggestions.
Hi mate,
You can give something like the following a shot:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
switch -glob $uri {
"/somepath/dir1*" -
"/somepath/dir2*" {
pool POOL_my.site.com-443
}
default {
pool POOL_your.site.com-443
}
}
}