Forum Discussion
Greg_76561
Nimbostratus
Jan 28, 2011Route to different pools based on /content
Hello,
I'm new to iRules and trying to come up with a way to send traffic to different pools based on the /content in the url.
I have a secure site which the ssl certificate is ins...
Chris_Miller
Altostratus
Jan 31, 2011Thanks...that's what I assumed. Does the most recent rule I wrote accomplish this? I had made a small error that I just modified.
when HTTP_REQUEST {
Check URI set to lower case with wildcard matching
switch [string tolower [HTTP::uri]] {
"uat*" {
pool uat_pool
HTTP::uri [string range [HTTP::uri] 4 end ]
}
"qa*" {
pool qa_pool
HTTP::uri [string range [HTTP::uri] 3 end ]
}
default {
pool qeneral_pool
}
}
}
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
