Forum Discussion

Gajji's avatar
Icon for Cirrostratus rankCirrostratus
Jun 22, 2021

Irule query

If I configure below IRule with ($ uri contains)(central is common) does this can cause the request for all three below to go to Pool1 only...


i can't see much by capturing , as the traffic comes from WAF and everything is encrypted...


elseif { $uri contains "central"} {

        pool Pool1


elseif { $uri contains "devcentral"} {

        pool Pool2


elseif { $uri contains "othercentral"} {

        pool Pool3

1 Reply

  • Hi,


    As all three options contain the word "central", the first one would always be chosen, as it is the first one to be matched. Probably the easiest way to fix this is to put the "central" statement at the bottom of the elseif list.


    Hope this helps.