Forum Discussion
Moe_Jartin
Cirrus
If you are looking to switch (or route) traffic to different pools based on the URI you can use an irule simliar to this:
when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]
switch -glob $uri {
/uri1* {
pool http_pool1
}
/uri2* {
pool http_pool2
}
/uri3* -
/uri4* -
/uri5* {
pool http_pool3
} default {
pool http_pool4
}
}
}
Kiran_Kumar
Aug 22, 2013Nimbostratus
Thanks verymuch Joe