Forum Discussion

slesh_219299's avatar
Dec 16, 2016

iRule with 2 different pool select

Hello guys I have a working vip with irule : when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/root/" } { pool pool_crm_test_8888 } else { pool pool_crm_test_https } }

 

And i need to add there something like if starts_with "/root2/" traffic will be redirected to pool_crm_test_9999

 

Can someone help me with this i tried couple things but ... it didnt work :(

 

  • Ok this seems to be working :)

     

    when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/isvroot/" } { pool pool_crm_test_8888 } elseif { [string tolower [HTTP::uri]] starts_with "/isvroot2/" } { pool pool_crm_test_9999 } else { pool pool_crm_test_https } }

     

  • Ok this seems to be working :)

     

    when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/isvroot/" } { pool pool_crm_test_8888 } elseif { [string tolower [HTTP::uri]] starts_with "/isvroot2/" } { pool pool_crm_test_9999 } else { pool pool_crm_test_https } }