Dc8100
1 TopiciRule sorry/maintenance page on pool with one node
Hi, I want to create an iRule for a pool with one node. (SSL offloading) When the node health check failed for some reason i want to display a Sorry Page down. When i set the node to Force disabled i want to display a maintenance page. Is this possible in 1 irule? I tried.. but only the page down displayed. when HTTP_REQUEST { if { [LB::status node x.x.x.x] eq "session_disabled" } { log local0.info "Server marked down, maintenance page enabled" HTTP::respond 302 content { <html> <title>System Maintenance</title> <article> <h1>System is Temporarily unavailable.</h1> <div> <br> <p>System is undergoing maintenance at this moment.</p> <p>Apologies for the inconvenience.</p> </div> </article> </html> } } elseif { [LB::status node x.x.x.x] eq "down" } { log local0.info "Server down, offline page enabled" HTTP::respond 503 content { <html> <title>System Down</title> <article> <h1>System is currently not available/offline</h1> <div> <br> <p>System is experiencing technical difficulties at the moment.</p> <br> <p>We're working on getting the site up and running again as quickly as possible</p> </div> </article> </html> } } } Kind regards, AS Networks531Views0likes3Comments