I’ve read several posts on creating an iRule that addresses Maintenance for pools of servers. So I’m pretty much sorted when it comes to creating the iRule to redirect traffic to another server in the event all pool members are down. However, when I do the redirect the redirected server’s DNS is displayed in the user’s browser window.
I can’t seem to figure out how to have the LTM mask the maintenance server’s DNS with the originally requested site. So that when user’s receive the down message, they can just refresh the site when the pool members become available again.
Could someone give me a point in the right direction on how to craft this iRule? Thanks for your time.
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0} {
HTTP::redirect "http://maintenance.server" }
}
Unfortunately, this doesn’t seem to work for me. When I replace the code, the traffic is no longer redirected and the client receives a “connection was reset” error.