Forum Discussion
Russell_77729
Nimbostratus
Dec 24, 2012Server Maintenance Page
So I have a VS with a pool that contains only one server. I am doing SSL offload to F5. If that one server is down I would like an iRule to display as simple message saying "Sorry, this server is d...
What_Lies_Bene1
Cirrostratus
Dec 24, 2012Something like this should do it;
when HTTP_REQUEST {
if {[active_members [LB::server pool-name-here]] < 1} {
HTTP::respond 200 content "Sorry, this server is down for mainenance" noserver Content-Type
"text/html" Connection "Close"
Stop processing the iRule for this event here
return
}
}
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