Forum Discussion
Chad_Young_1032
Nimbostratus
Mar 12, 2008redirect external URL based on Pool member health
I am trying to create a iRule that will first check the health of a pool and then redirect the request to an external host based on pool availability. I have a need not to proxy the request, so I can...
Nicolas_Menant
Employee
Mar 12, 2008you can do that:
when HTTP_REQUEST {
if {[active_members poolA] > 0} {
HTTP::redirect www.123.com
} else {
HTTP::redirect www.456.com
}
}
OR you can do the following:
when HTTP_REQUEST {
HTTP::redirect www.123.com
}
in your HTTP profile you specify a fallback host to be www.456.com.
The default pool of your VS will be poolA
This way if at least one pool member in poolA is available then this iRule will be executed and the the user will be redirect to www.123.com
fallback host in http profile specify a redirect to do in case all pool members are down
HTH
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