Forum Discussion
Chris_Lappi_164
Nimbostratus
Jan 12, 2015irule help
We have 1 irule doing the following:
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/aboutus/careers"} {pool A}
if {[string tolower [HTTP::uri]] starts_with "/aboutus"} {pool ...
Brad_Parker
Cirrus
Jan 12, 2015Try putting your pool A URIs in one datagroup(
poolA_dg); i.e. /news/events, /news/graphics,/aboutus/careers /aboutus/export, /aboutus/environment and all your pool B URIs in another datagroup(poolB_dg) and try this irule. It will be more efficient and should accomplish your goal.
when HTTP_REQUEST {
if {class match [string tolower [HTTP::uri]] starts_with poolA_dg}{
pool A
}
elseif {class match [string tolower [HTTP::uri]] starts_with poolB_dg}{
pool B
}
elseif {[string tolower [HTTP::uri]] starts_with "/admin/"} {
pool B member 1
}
elseif {[string tolower [HTTP::uri]] starts_with "/pdf/*"}{
[HTTP::uri] [string range [HTTP::uri] 4 end]
pool C
}
}
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