Forum Discussion
Khanh_vo_213579
Nimbostratus
Apr 28, 2016iRule Not Sending Request to Correct Pool
I have an iRule:
when HTTP_REQUEST {
log local0. "uri info: [HTTP::uri]"
switch -glob [string tolower [HTTP::uri]] {
"/webservice1*"
{ pool ws_pool1 }
"/webservice2"
{ pool ws_...
Stanislas_Piro2
Cumulonimbus
Apr 28, 2016Hi,
I don't see any error in the irule.
you can try to log selected pool after switch:
when HTTP_REQUEST {
log local0. "uri info: [HTTP::uri]"
switch -glob [string tolower [HTTP::uri]] {
"/webservice1*" { pool ws_pool1 }
"/webservice2" { pool ws_pool2 }
default { pool ws_pool3 }
log local0. "pool info: [LB::server pool]"
}
}
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