Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Irule query

Gajji
Cirrus
Cirrus

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 1

AlexBCT
MVP
MVP

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.