Forum Discussion
annielee_13548
Nimbostratus
Jun 27, 2014Maintenance page
Hi Guys,
I'm pretty new to iRules and trying to modify an existing code to do the following :
1) if pool is down, show page down
2) if pool is on high request, show high load page..
3) both page...
nitass
Employee
Jun 30, 2014can you try something like this?
if { [HTTP::uri] eq "/assets/images/companylogo.png" } {
HTTP::respond 200 content [ifile get company.png] "Content-Type" "image/png"
return
} elseif { [HTTP::uri] eq "/assets/images/footer.png" } {
HTTP::respond 200 content [ifile get footer.png] "Content-Type" "image/png"
return
}
if { [active_members pool] < 1 } {
HTTP::respond 200 content [ifile get maintenance.html]
} elseif { highload > 2 } {
HTTP::respond 200 content [ifile get highload.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
