Forum Discussion
samstep
Apr 30, 2015Cirrocumulus
First of all this is a REALLY-REALLY OLD iRule for v9 of BIG-IP (now unsupported).
You can achieve what you are trying to do WITHOUT iRules - simply set the Connection Limits on your Pool Members and set the FallBack Host setting in your HTTP Profile assigned to this Virtual Server to the URL (hosted elsewhere) showing the "Sorry our site is unavailable - close your browser and try again later" message along with your logo/styles/look-and-feel-whatever....
Alternatively if you want to use an iRule check out this one: https://devcentral.f5.com/codeshare?sid=731 however you will need to change the TCP::close command inside to HTTP::redirect "http://www.someotherwebsite.com/sorry_we_are_down_page.html"
Hope this helps,
Sam