How to set maintanence page

I have configured VIP. 2 memebers in LTM pool.

Requirement : If both member not available then it will redirect to https://A.B.C.D:XYZ/outofservice.html page

I created one LTM pool for oos page.Please let me know the IRule

Hi,

great irule here to use on a Virtual Server as a maintenance page…

You will need a HTTP profile on the LB Virtual Server that has “fallback host” enabled.

HTH

B

From an SEO perspective it’s best to use HTTP::respond with a 5xx response status code ie.

when LB_FAILED {
    HTTP::respond 502 content $sorry_page noserver Retry-After 300
    return
}

The content returned could be a simple page such as one of the ones in bboyjnr’s link above, or you can get a full-blown page complete with embedded images, then gzip it, then b64encode it, and place in a datagroup dg_sorry_page with key “5xx”, then access it as follows;-

when LB_FAILED {
    HTTP::respond 502 content [b64decode[class match -value "5xx" equals dg_sorry_page]] noserver Content-Encoding "gzip" Retry-After 300
    return
}