Forum Discussion
SL
Cirrus
Jan 18, 2018Maintenance 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 ...
P_Kueppers
MVP
May 27, 2020I 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>
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects