Forum Discussion
MrRichard
Nimbostratus
Aug 13, 2013How to create iRule to deliver an alternate page response other than 'page unavailable'
When we currently disable one of the virtual servers in our setup, we get an 'unable to display this page' message in the browser. Rather than this, we would like to display a maintenance page so tha...
IheartF5_45022
Nacreous
Nov 05, 2013For what it's worth we use a 503 (Service Unavailable) from LB_FAILED;-
when LB_FAILED {
HTTP::respond 503 Content [b64decode [class lookup $sorry dg_content]] noserver Content-Type "text/html" Retry-After "600" Content-Encoding "gzip" Connection "close"
return
}
We have the HTML gzipped, b64-encoded, and stored in a data group (dg_content). The Retry-After header is for SEO.
- IheartF5_45022Nov 05, 2013
Nacreous
Sorry just realised this question was about 404s, not when servers down. Ignore :-)
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