Forum Discussion
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
2 Replies
- bboyjnr_8532
Cirrus
Hi,
great irule here to use on a Virtual Server as a maintenance page...
https://devcentral.f5.com/wiki/irules.HTTP__respond.ashx
You will need a HTTP profile on the LB Virtual Server that has "fallback host" enabled.
HTH
B
- IheartF5_45022
Nacreous
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 }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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