Forum Discussion
Brandon_Van_849
Mar 05, 2012Nimbostratus
HTTP_Request and LB::Status
Im trying to use the HTTP_response 200 content from a IF statment made with LB::status. I have gotten the F5 to accept the irule with out error but i am still not getting the result i want. I want the...
koenning_107182
Mar 05, 2012Nimbostratus
Hi Brandon,
here an example:
when CLIENT_ACCEPTED {
set def_pool [LB::server pool]
set lb_fails 0
}
when LB_FAILED {
if { $lb_fails < [active_members $def_pool] } {
LB::mode rr
LB::reselect pool $def_pool
} else {
HTTP::respond 200 content {
Apology Page
We are sorry, but the site you are looking for is temporarily out of service
If you feel you have reached this page in error, please try again.
}
}
incr lb_fails
}
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