Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

When Website is unavailable

Hello,

I had, what I hope is a simple question. Is there a way to have the F5 point to a "under construction" or "website is down" html page? I have several pools and subsequent websites behind my F5, and I have the F5 performing health checks on said pools and websites. However, when there is an outage or the website is unavailable can I have the F5 redirect to an outage page when the user community attempts to connect to the desired website? if it is possible is this something that is within the system or IRULES?


I will apologize if the wrong forum.


thanks
greg
0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER
You can set the fallback host in the http profile, which will redirect traffic to the destination you configure. If you want more granular control, you can set this in an iRule:

 
when LB_FAILED {
HTTP::fallback "http://siteunavailable.mysite.com/"
}


If you don't have another server to redirect to, you can always serve the page from the LTM itself. Here are two examples from the codeshare

Text-only: http://devcentral.f5.com/wiki/default.aspx/iRules/LTMMaintenancePageLite.html Click here

Text with Images: http://devcentral.f5.com/wiki/default.aspx/iRules/LTMMaintenancePage.html Click here
0