Forum Discussion
Ron_130795
Nimbostratus
Jul 16, 2014Need Assistance with iRule on adding multiple pools
My default pool is prod.ria.internal.com which works. However when I type in my url of testing.com/application the iRule is not using the /application pool. Any thoughts? Thanks in advance.
w...
Arie
Altostratus
Jul 16, 2014Could it be that the request adds a trailing slash? You're not looking for that in the switch. You could see what happens if you add an asterisk to your criteria:
when HTTP_REQUEST {
Check requested uri header (set to lowercase)
switch -glob [string tolower [HTTP::path]] {
"/blog*" {
pool prod.ola.internal.com
}
"/application*" {
pool prod.ola.internal.com
}
default {
pool prod.ria.internal.com
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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