Forum Discussion
avnishvyas_1974
Nimbostratus
Aug 05, 2015Maintenance Page using V11
Hi guys
Ive read the brilliant article by https://devcentral.f5.com/articles/v111-ndashexternal-file-access-from-irules-via-ifiles
which has been most useful and im actually about to attempt thi...
Kevin_Stewart
Employee
Aug 07, 2015So again, "[LB::Customer_5013_5014_pool]" isn't a valid command. You can either use "[LB::server pool]" to expand the configured pool automatically when the HTTP_REQUEST event is triggered, or you can put in the literal string name of the pool:
if { [active_members "Customer_5013_5014_pool"] == 0 }
So the following should be exactly what you need:
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
HTTP::respond 200 content [ifile get "Maintenance_Page"]
}
}
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