Forum Discussion
syneco_183300
Nimbostratus
Jan 21, 2015Maintenance 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
- Ed_Summers
Nimbostratus
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? - syneco_183300
Nimbostratus
All users needs to be redirected to maintenance page.
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