Forum Discussion
Shahram_83722
Jun 16, 2012Nimbostratus
iRule to redirect based on path plus fallback host
I'm not super on iRules but need to write one that will redirect path A and B to pool1 and path C and D to pool2. I also need to incorporate a fallback host in case each of these pools don't have a me...
hooleylist
Jun 19, 2012Cirrostratus
return exits out of the current event of the current iRule. So basically, the active_members check on the currently selected pool won't be run if the request is to a URI that's set for being dropped.
The [LB::server pool] command will return the name of the currently selected pool. So it should work fine to move that check out of the switch statement.
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