Forum Discussion
Kahle_260273
Nimbostratus
Dec 05, 2016Irule to redirect all incoming traffic
Hi, I am trying to make an Irule that will redirect all traffic to a new URL. Little back story. We have our website hosted on one server and our out of service page hosted on another. The f5 fails o...
Dec 05, 2016
Maybe you don't need an iRule. In the HTTP profile it is possible to enter a 'Fallback Host'. The help funtions notes:
"Type the fallback host to send as an HTTP 302 response, when all nodes are down."
You could also use the iRule from this SOL:
https://support.f5.com/kb/en-us/solutions/public/6000/500/sol6510.html
when LB_FAILED {
if { [active_members [LB::server pool]] < 1 } {
The redirect will be sent only if LB_FAILED
was because the pool had no available members.
HTTP::fallback "http://host.domain.com/redirect.html"
}
}
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