LaJuan_267846
Oct 23, 2017Nimbostratus
iRule for Single Wildcard VIP to Multiple Pools
I need suggestions for troubleshooting or help resolving how to send requests to a single domain to multiple pools based on the URL path. For example: https://apps.mydomain.com/dev/, https://apps.mydomain.com/qa/, https://apps.mydomain.com/test/, and https://apps.mydomain.com (default). I tried several variations and referenced several web resources. My current iRule sample is listed below. The default pool comes up, but none of the URL paths work.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*/dev/*" {
pool DEV-HQ_Pool
}
"/qa/*" {
pool QA-HQ_Pool
}
default {
pool PROD-HQ_Pool
}
}
}