Forum Discussion
Irule for Sorry page
Hi Champs,
need your help urgently.
I need irule for redirecting url say https://www.abc.com/efg/ to sorry server pool ,if no webserver available to serve the page.I am having single VIP with different URI .I have written irule to load balance URI to there respective webservers.
Now Requirement is to redirect particular above said URI to sorry pool if web server is unavailable.
Cheers !!
3 Replies
Hi Puluck!
Have you checked out the fallback host option (and if you're running a later version of F5, the Fallback on Error codes) in the HTTP profile?
/Patrik
- nitass
Employee
I am having single VIP with different URI .I have written irule to load balance URI to there respective webservers.
if you have different pool for each uri, you may check active member for specific pool and take action when it is down e.g. redirection.
active_members
https://devcentral.f5.com/wiki/iRules.active_members.ashx
HTTP::redirect
https://devcentral.f5.com/wiki/iRules.http__redirect.ashx
- The_Bhattman
Nimbostratus
You can also look at the Codeshare and modify it to display the "Sorry Page"
https://devcentral.f5.com/wiki/irules.ltmmaintenancepage.ashx
I hope this helps -=Bhattman=-
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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