Forum Discussion
Tadaoki_237078
Nimbostratus
Oct 03, 2017iRule(event) evaluation
Hi all,
I have some questions about iRule evaluations:
If an event is triggered but the traffic doesn't match any of the conditions, what will happen?
(e.g. what will the following iR...
Stanislas_Piro2
Cumulonimbus
Oct 03, 2017Hi,
JTI provides the right response. This answer is to help you to optimize the code.
when working with virtual server, there is more and more virtual server distributing request to different pools based on hostname or URI. If you apply your code to a such virtual server, every content will display the maintenance page if pool_fubar is unavailable.
this code is more generic and can manage per request maintenance pool detection.
when HTTP_REQUEST {
if { [active_members [LB::server pool]] < 1 } {
HTTP::respond 200 content [ifile get sorry_file] "Content-Type" "text/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