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?