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...
Greg_76561
Nimbostratus
Jan 31, 2011I must not be doing something right when trying to tie the two together in one iRule. How do you incorporate the two sections below in to one iRule? When I've tried combining the two it will send it on to the pool but it won't strip off the /QA.
Section 1:
when HTTP_REQUEST {
Check URI set to lower case with wildcard matching
switch [string tolower [HTTP::uri]] {
"uat*" {
uat_pool
}
"qa*" {
qa_pool
}
default_pool {
qeneral_pool
}
}
}
Section 2:
HTTP::uri [string range [HTTP::uri] [string first "/" [HTTP::uri] 1] end]
Thanks for your patience,
Greg
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
