Forum Discussion
Clint_Denham_16
Nimbostratus
Jul 05, 2007Outage Pool with Redirect to '/'
Hi all - I've found enough info to get a basic rule setup tath does what I want, but now my app team wants to get all fancy on me.
My basic rule is "if the PRODUCTION pool is down, use the outage ...
Jul 05, 2007
There is no "begins_with" operator. Use the "starts_with" operator and you should be set!
when HTTP_REQUEST {
if { [active_members prod_pool] == 0 } {
pool prod_outagepool }
if { ( [active_members prod_pool] == 0 ) and ( [HTTP::uri] starts_with "/outage" ) } {
HTTP::uri /outage }
elseif { [active_members prod_pool] == 0 } {
HTTP::uri / }
}A list of F5 specific operators (in addition to the standard TCL operators) is listed here:
http://devcentral.f5.com/wiki/default.aspx/iRules.Operators
Click here-Joe
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