syneco_183300
Jan 21, 2015Nimbostratus
Maintenance page applied when VIP is UP
I notice as the maintenance page can be used only if servers are down behind the pool. Can an iRule be applied to a VIP which is up to redirect all users to the maintenance page?
Here is the iRule:
when HTTP_REQUEST {
if { [HTTP::uri] eq "/" } {
HTTP::respond 200 content [ifile get Maintenance-page-web]
} elseif { [HTTP::uri] eq "/logo.gif" } {
HTTP::respond 200 content [ifile get logo.gif]
} else { discard }
}
LTM ver 11.5