Forum Discussion
Siddarth_84779
Jan 28, 2011Nimbostratus
iRule for maintenance page
Hi guys,
I want to write an irule for maintenance page such that the single iRule can be applied to multiple VS. Presently we are using the below irule
when HTTP_REQUEST {
if {[ac...
JG
Feb 06, 2015Cumulonimbus
I need an inline (no HTTP redirect) long maintenance page for a particular website, and I want to get around the bug in "LB_FAILED" (ID 222034). Below is a cut-down version of my code:
when HTTP_REQUEST {
switch -- [string tolower [HTTP::host]] {
"www.example.com" {
pool www.example.com_pool
set selected_server [LB::server addr]
if {$selected_server == ""} {
If there are no members available, generate a long Maintenance Page
HTTP::respond ...
}
}
"www.example2.com" {
pool www.example2.com_pool
...
}
}
}
Will anybody comment on whether this will work, or if there is anything not right here, or if there is a better way to achieve the same effect?
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