Forum Discussion

John_Ogle_45372's avatar
John_Ogle_45372
Icon for Nimbostratus rankNimbostratus
Jun 19, 2011

class match/data group - uri pool selection failing...

Hello,

 

 

I have an iRule that is giving me some trouble. I created a string datagroup of several URIs. The goal is just to look for a match on a particular URI and then send to the pool if a match is found. Otherwise, send the request to the landing page. The LTM is running 10.2.0 1707.15. For some reason, EVERY reqeust always goes to the landing page. A match is never found. The first line in the datagroup is another option I was trying. Any help would be very much appreciated.

 

 

when HTTP_REQUEST {

 

if { [class match [string tolower [HTTP::uri]] starts_with DMPS_URI_List] } {

 

pool DMPS_Stage_88

 

}

 

else {

 

HTTP::redirect "https://apps.company.com/"

 

}

 

}

 

 

class DMPS_URI_List {

 

{

 

"bpptasks" { "apps.company.com/bpptasks/" }

 

"dpptsks"

 

"jpptasks"

 

"lpptasks"

 

"gpptasks"

 

"mppatasks"

 

"opptasks"

 

}

 

}

 

 

 

Thank you,

 

 

 

13 Replies