Forum Discussion
Jamesy_105825
Dec 23, 2010Nimbostratus
redirect and sorry server, new to irules
I am trying to write an iRule to redirect to a sorry server where another redirect rule exists. I'm new to irules and I can't seem to wrap my head around the logical flow.
Essentially, I wa...
hooleylist
Dec 27, 2010Cirrostratus
If you're switching pools or pool members based on URI, make sure to add a OneConnect profile to the virtual server. If you're using SNAT set the OneConnect source mask to 0.0.0.0. If you're not using SNAT, set the source mask to 255.255.255.255. For more info check this wiki page:
http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/oneconnect.html
You could also adapt Bhattman's example to cover the edge cases more clearly:
when HTTP_REQUEST {
if { [active_members pool1] == 0 && [HTTP::uri] starts_with "/login-test"} {
pool sorry_page_pool
} else {
pool Pool1
}
}
Aaron
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