fr55tam_245172
Jan 27, 2016Nimbostratus
F5 irule: HTTP_REQUEST switch -glob HTTP::uri not working with pool
Hi,
I am trying to use a HTTP request iRule to loadbalance from a virtual IP.
If I add the pool directly to the VIP as a default pool; it displays fine.
When I try the below iRule it doesn't load balance to the pool, if I change the below to display a 220 html message after I enter example.com/test1 it works.. Can someone point me in the right direction to what my problem could be?
when HTTP_REQUEST { switch -glob [HTTP::uri] {
"/test1" { pool test_pool } } }
Also, the pool is on a different port than the original HTTP request. The VIP has both address & port translation ticked.
Thanks