Forum Discussion
Jad_Tabbara__J1
Apr 12, 2017Cirrostratus
It seems that your code is correct.
I tried this code and it works for me
when HTTP_REQUEST {
if {[HTTP::path] contains "jta"} {
log local0. "my_pool_a is selected for path [HTTP::path]"
pool my_pool_a
} else {
log local0. "my_pool_b is selected for path [HTTP::path]"
pool my_pool_b
}
}
Have you applied the irule to your VS ?
Remark: you can remove the "default pool" configuration from the "ressources" and just apply your irule and try again.
You can also check your log in /var/log/ltm
Regards