Forum Discussion
JeffM
Nimbostratus
Oct 24, 2014Having issue with multiple if statements for irule
What I am trying to do is have / and specific data group list URIs going to pool B and the rest of the traffic going to pool A. Issue is that when a URI contains part of an entry in the data group l...
JeffM
Nimbostratus
Oct 24, 2014My irule did not dsiplay very well - reposting so it is easier to read.
when HTTP_REQUEST {
if { ( [HTTP::uri] equals "/A/documents" )
or ( [HTTP::uri] equals "/B/documents" )
or ( [HTTP::uri] equals "/C/documents" )
or ( [HTTP::uri] equals "/D/documents" )
or ( [HTTP::uri] equals "/E/documents" )} {
pool pool_default_domain.com
}
if { ( [HTTP::uri] equals "/" ) or ( [class match [string tolower [HTTP::uri]] starts_with dgl_aem.domain.com] ) } {
pool pool_alternate.com
} else {
pool pool_default.domain.com
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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