SL
Jan 18, 2018Cirrus
Maintenance page iRule
Hi All
I have created the below iRule for a Maintenance page
The page is loading successfully however. I am however the following issues:
- The maintenance page is rendered even ...
I can recommend to use base64 for images...
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
HTTP::respond 503 content {
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Error 503 Service Unavailable</title>
</head><body>
<img src="data:image/png;base64,yourbase64codehere" alt="Logo">
<h1> Service Unavailable </h1>
<p>The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.</p>
</body>
</html>
}
}
}