rwagner1
Aug 16, 2017Nimbostratus
iRule for App Offline
We currently use an iRule to display an app offline page when the connection to the server is down. I would like to some how to make this as generic as possible due to wanting to use host headers. Here's what we currently use.
when HTTP_REQUEST { if { [active_members APP-HTTPS-POOL] < 1 } { HTTP::respond 200 content [ifile get App_Offline] } }
I would like to have the irule check the host header for multiple sites and only send the App_Offline for the pool that's down.
Example: abc.123.com def.123.com & ghi.123.com. all have pools matching the host name. If abc.123.com pool members are down but the others are up I only want the App_Offline page to show for that site.