Forum Discussion
LaJuan_267846
Nimbostratus
Oct 23, 2017iRule 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.myd...
Kai_Wilke
MVP
Oct 23, 2017Hi LaJuan,
your iRule syntax looks fine to me. To further troubleshoot your iRule, you may want to insert additional debug code to see if the iRule is getting triggered and which code path it has choosen...
when HTTP_REQUEST {
log local0.debug "New Request to: [string tolower [HTTP::uri]]"
switch -glob -- [string tolower [HTTP::uri]] {
"*/dev/*" {
log local0.debug "*/dev/* is selected..."
pool DEV-HQ_Pool
}
"/qa/*" {
log local0.debug "/qa/* is selected..."
pool QA-HQ_Pool
}
default {
log local0.debug "Default pool is selected..."
pool PROD-HQ_Pool
}
}
}Cheers, Kai
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
