roblof_255673
Mar 23, 2016Nimbostratus
Redirect traffic to a specific node in a pool depending on URL using iRules
Two months on the meter with F5 and now I need some help with iRules.
I want "www.domain.com/x/login" to be directed to two specific servers test1 and test2 in pool "tool-test" and "www.domain.com/y/login" to be directed to two other servers test3 and test4 in the same pool "tool-test"
when HTTP_REQUEST { switch -glob [string tolower [HTTP::path]] { "/x"-"/y" { pool pool tool-test } default { pool tool-test } } }
I don't know if it's even possible to do it when the servers are in the same pool. BIG-IP version 11.6.0
Thanks Robert