Forum Discussion
Jeff_Morrison_4
Nimbostratus
Feb 15, 2006Too iRule???
F5 support suggested that I post my iRule on Devcentral as they felt there were issues with the iRule. Support felt it was to long and that there might be a better solution.
The purpose of ...
JRahm
Admin
Feb 15, 2006You could turn timing on to see if your rule is overwhelming the system. Here's an alternative to your rule:
class my_uri {
"/cust1"
"/cust2"
"/cust3"
"/cust4"
<--omitted-->
"/cust57"
}
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::uri]] contains $::my_uri] } {
use pool Pool1
} elseif { [HTTP::uri] contains "/Cust58"} {
pool Pool2
} elseif { [HTTP::uri] contains "/Cust59"} {
HTTP::redirect https://www.somewebsite.com/
} else {
HTTP::redirect http://www.somewebsite.com/Error.html
}
} 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