Jace_45978
Jun 19, 2009Nimbostratus
CSS to F5 iRule redirect to pool question.
have a CSS that we are moving away from and going to F5 v9.4.7
The CSS has two VIPs same IP and port one is a default url "*" goes to server A and the other is url "/battery/*" goes to service B
I am thinking that I create a standard port 80 VIP with default pool A and attach irule that sends /battery/ request to pool B
when HTTP_REQUEST {
if {[HTTP::uri] contains {/battery/}}
{pool B}
}
}
is there a better way to right this or will this even work?
Thanks in advance.
here is sample from CSS:
content blah-80
vip address 1.1.1.1
add service serverA
protocol tcp
port 80
url "/*"
active
content blah-battery-80
vip address 1.1.1.1
add service serverB
protocol tcp
port 80
url "/battery/*"
active