Forum Discussion

sanjai_126162's avatar
sanjai_126162
Icon for Nimbostratus rankNimbostratus
Apr 19, 2017

Irule for cookies match

Hi, We have requirement to match 2 condition. 1-its have match the cookies condition 2-its have the request uri then route to pool member [not pool]

 

I created the below irule

 

when HTTP_REQUEST { if { ([HTTP::cookie "UserInfo"] contains redapp) && ([string tolower [HTTP::uri]] contains "/abcd/")} { node 1.2.1.1 80}

 

could you suggest will it work or please some sample irule with datagroup match.

 

1 Reply

  • Did you tried above iRule? I don't see any issue in iRule

         when HTTP_REQUEST { 
          if { ([HTTP::cookie "UserInfo"] contains "redapp") && ([string tolower [HTTP::uri]] contains "/abcd/")} 
            { node 1.2.1.1 80 }  
            }