Forum Discussion
John_Ogle_45372
Jun 19, 2011Nimbostratus
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 ...
John_Ogle_45372
Jun 20, 2011Nimbostratus
Here is the current version:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] starts_with DMPS_URI_List] } {
pool DMPS_Stage_88
log local0.info "Match found for [HTTP::uri]"
}
else {
HTTP::redirect "https://apps.company.com/"
log local0.info "NO Match found for [HTTP::uri]"
}
}
class DMPS_URI_List {
{
"//bpptasks"
"//dpptasks"
"//jpptasks"
"//lpptasks"
"//mpptasks"
"//opptasks"
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects