Forum Discussion
Greg_76561
Jan 31, 2011Nimbostratus
I 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