pjcampbell_7243
Apr 30, 2013Cirrus
Specifying pool in iRule failing
I have an iRule here and when I hit up the VIP that has this rule applied, it does not seem to work at all:
when CLIENT_ACCEPTED {
Save default pool name
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
log local0. "[HTTP::uri] [LB::server addr]"
if { [HTTP::uri] ends_with "test=64" }{
pool test-temp
} elseif { [HTTP::uri] contains "test=64&" }{
pool test-temp
} else {
pool $default_pool
}
}
I tried shutting down the default_pool servers, and instead of going to test-temp pool, I just get a connection refused. I tried setting persistence to NONE. What am I missing here?
I'm calling http://my.vip.ip.here/test.txt?test=64
I have a similar iRule applied for HTTP::path rather than HTTP::uri for image extensions which seems to work fine. Bottom line I need to get people going to our domain with test=64 anywhere in the URI to a different group of servers. Thanks.