Forum Discussion
dave_20485
Nimbostratus
Aug 05, 2010Triggering a holding page for all virtual servers
Hi there,
I've been searching around the forums looking for an answer to this Q, and haven't found it, but if there is already a posted solution then please point me in the direction of it...
I have a pair of 1600's running 10.1.0 and use it to terminate SSL connections, so I have quite a few virtual servers ( > 100 ) configured using the same backend pools.
What I want to do is be able to put up a holding page using some kind of trigger for all virtual servers, without having to add an irule manually to each server every time we hit a maintenance slot.
I can manually add an irule to serve the holding page for each server, but its laborious adding it to more than a few servers.
What I had in my head was an irule present on all virtual servers which went something like this
if some_condition
then
display holding page
else
do nothing and carry on
where some_condition is a check for the result of a single manual task such as creating a file on the filesystem called "IN_MAINTENANCE" ( or similar )
I've looked at data groups but confess to not understanding them very well, and whether that is the right place to be looking in the first place.
Any help is always appreciated !
cheers,
Dave
- hoolio
Cirrostratus
Hi Dave,when HTTP_REQUEST { Check if the global_maintenance_class's single name is 1 or 0 if {[class element -name 0 global_maintenance_class] == 1}{ Send the maintenance HTML with cache control headers set to prevent caching HTTP::respond 200 content {maintenance info here} Cache-Control No-Cache Pragma No-Cache } }
- dave_20485
Nimbostratus
Cheers Aaron, thanks for pointing me in the right direction. Will have a play around with icontrol ( thats completely new to me ) to get where I want to be.
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