mnb_63148
Jul 14, 2015Nimbostratus
iRule sending traffic to wrong pool
I have an iRule where I am trying to send the traffic to a specific pool if the iRule contains a specific URI (/MyExample in this instance). The URI being requested by the application is /MyExample/abc/xyz.do?{%22xyz}. For some reason, the iRule is sending the traffic to the default pool instead of the example_pool, which is where I need it to go. Any help would be greatly appreciated.
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/MYExample*" { pool example_pool }
}
switch -glob [string tolower [HTTP::path]] {
"/" { HTTP::respond 301 "Location" "http://[HTTP::host]/abc/" }
default { pool abc.com_pool }
}
}