Forum Discussion
Jack_39703
Nimbostratus
Jul 27, 2009contains? starts_with? equals?
hi there
i have a existing iRule as follow
when HTTP_REQUEST {
if { [HTTP::uri] contains "/123/"} {
pool 123
}
elseif { [HTTP::uri] s...
Jul 28, 2009
How about this?
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"*/123/*" {
pool 123
}
"/456/*" {
pool 456
}
"/123_456*" {
pool pool_123456
}
default {
pool 789
}
}
}
The first "*/123/*" should not match on "/123_456" so you should be set.
-Joe
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
