Forum Discussion
Eduardo_Saito_1
Nimbostratus
Sep 13, 2007Insane behaviour while selecting pool
Hello guys,
This week while troubleshooting an iRule made by another developer, an insane behaviour starded to happen.
The iRule is prety simple. The goal is to redirect to 3 ...
JRahm
Admin
Sep 13, 2007There is no default condition on your switch statement:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/uriA/*" {
HTTP::uri [string range [HTTP::uri] 5 end]
pool poolA
}
"/uriB/*" {
HTTP::uri [string range [HTTP::uri] 5 end]
pool poolB
}
"/uriC/*" {
HTTP::uri [string range [HTTP::uri] 5 end]
pool poolC
}
default {
pool default_pool_from_virtualserver
}
}
}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