Forum Discussion
vg
Nimbostratus
Sep 17, 2020irule to get the maintainance page data from third party portal
This is my first ever irule work I have come across. Problem Statement: We want to display the maintenance page during maintenance window. It is a static Unavailable.html page uploaded as ifile. W...
Sep 19, 2020
Hi vg,
Can you try adding variables in iFile (Unavailable.html)?
Example iFile:
<html>
<head>
<title>We will back soon</title>
</head>
<body>
Sorry, bla bla... $message <br><br>
Planned Maintenance Hours: $hours
</body>
</html>Example iRule:
when HTTP_REQUEST {
set message "your message"
set hours "00:01 - 02:00"
HTTP::respond 200 content [subst [ifile get "Unavailable.html"]]
}Output:
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