Forum Discussion
luyenntk50db
Nimbostratus
Jan 29, 2021Using an iRule to display a maintenance page when the pool is down
I have configured to redirect Virtual server to maintenance page when all pool member down. I have configured below guide: https://support.f5.com/csp/article/K14702105 When i used irule below, Ir...
iaine
Nacreous
Jan 29, 2021Hi
Try changing the " " to group the HTML to { } braces instead as per the error. Suspect the " in the style lines are causing a conflict.
when HTTP_REQUEST {
if { [active_members [LB::server pool]] == 0 } {
HTTP::respond 200 content {
<html>
<head>
<title>Maintenance Page</title>
</head>
<body>
<article>
<center><h1 style="color: #000;">
Xin lỗi quý vị, hệ thống đang được bảo trì. Xin quý vị quay lại sau khi bảo trì hoàn tất.</h1> <center>
<div>
<center><h1 style="color: #000;">Xin trân trọng cảm ơn!.<p></p><center>
</center></h1></center></div>
<article>
</body>
</html>
}
}
}
- luyenntk50dbFeb 01, 2021
Nimbostratus
Thanks for ,
I changed belong as you. But irule failed.
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