Forum Discussion
azimboblai_1330
Nimbostratus
Sep 05, 2013http redirect
simple http redirect when service is not available
Kevin_Stewart
Employee
Sep 05, 2013I guess this depends on your exact requirements, but here's a pretty common use case (no active pool members):
when HTTP_REQUEST {
if { [active_members http_pool] < 1 } {
HTTP::redirect "http://dr-site.example.com"
}
}
when "http_pool" is the name of the pool assigned to the VIP (along with this iRule). If all of the pool members are down, it will simply redirect the user to a new URL.
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