-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathirule1
36 lines (36 loc) · 890 Bytes
/
irule1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
HTTP::respond 200 content {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Maintenance Page</title>
<style>
body {
text-align: center;
font-family: Arial, sans-serif;
}
img {
height: 240px;
width: 480px;
}
footer {
margin-top: 20px;
}
</style>
</head>
<body>
<img src="https://www.redhat.com/rhdc/managed-files/ansible/RedHat-Ansible-Automation-Platform_logo-white-1.png" alt="Red Hat Ansible Automation Platform Logo">
<h1>Under Maintenance</h1>
<p>We are sorry, but the site you are looking for is temporarily out of service.</p>
<footer>
<h2>Approved Maintenance Window</h2>
</footer>
</body>
</html>
}
return
}
}