Forum Discussion
AlanRod
Nimbostratus
May 24, 2019How to display maintenance page when server is down (redirect web traffic)?
Good day, For a specific client we require, from the BIG-IP side, to redirect/show a maintenance page while a server(node) is unavailable. I found this article which I think it could help us ht...
Samir
MVP
May 25, 2019Try below iRule, which will you to solve issue.
when LB_FAILED {
if { [active_members POOL-NAME] < 1 } {
# Log and direct the client to Maintenance Page
HTTP::respond 200 content {
<html><head><title>Apology Page</title></head><body>
<center> We are sorry, but the site you are looking for is temporarily under maintenance.<br>
----------- <br>
Please try after sometime or contact your system administator</center>
</body></html>
}
}
}
AlanRod
Nimbostratus
May 27, 2019Good day Samir,
Thanks for your help.
We used the iRule and changed "POOL-NAME" with our client's Pool, applied the iRule to our client's Virtual Server but when disabling our client's Node (for testing purposes) the Apology Page does not load. Is there something we are missing?
- SamirMay 27, 2019
MVP
Just forcefully disable node. It will work..
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