Forum Discussion
Siraj_Arab_1610
Mar 22, 2016Nimbostratus
How to create iRule to respond with Maintanence Page for HTTPS site
I have created a maintenance page using html - iFile configurations as below:
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1} {
switch [string tolower [HTTP::...
Arie
Mar 22, 2016Altostratus
It should work fine if you bridge SSL (i.e. terminate SSL & re-encrypt before it leaves the BIG-IP).
On a different note, you're sending a 200 (OK):
HTTP::respond 200 content [ifile get Maintenance] "Content-Type" "text/html"
However, a maintenance is page should use a 503 (Server Unavailable) rather than a 200 (OK). Many reasons for this: adherence to the RFC, monitoring, and SEO. Simply replace the response code and you'll be all set. Only do this for page requests, not for supporting elements like images.
HTTP::respond 503 content [ifile get Maintenance] "Content-Type" "text/html"
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