Forum Discussion

syneco_183300's avatar
syneco_183300
Icon for Nimbostratus rankNimbostratus
Jan 21, 2015

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

2 Replies

  • Are you attempting to redirect all users, no matter the request, to the maintenance page? Or, based on the iRule you provided, is your goal only to redirect users requesting the root path?