Forum Discussion
jay_41157
Nimbostratus
Aug 27, 2008can this Irule be optimized?
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri]] starts_with $::legacyPaths] } {
checked for matchclass == legacyPaths and forward to Legacy_http_pool
...
hoolio
Cirrostratus
Sep 05, 2008I think the rule was as efficient as it could be.
Is there any overlap between the URI's you want to go to the two different pools? ie, are there any instances where you want /one/something to go to stage, but all other /one/* URI's to go to legacy?
If not, you should be able to continue using starts_with. If this doesn't work, can you provide some sanitized (but detailed) examples of two overlapping URIs?
Aaron
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