Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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 :(

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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 } }

0