Forum Discussion
Mel_153429
Nimbostratus
Dec 02, 2015I need help creating an IRULE that redirect if pool members are down and url ends with /VCS
Hello,
I need help creating an IRULE that meets two conditions. If the pool members are down and it the url ends with /vcs. The pool is for a sharepoint site and just want to be redirected for ...
- Dec 02, 2015
If no pool members are up, LB_FAILED will be triggered. It can be triggered for other reasons, but perhaps you wish to redirect any time that the traffic cannot be forwarded because of a failure? If so:
when HTTP_REQUEST { if { [HTTP::path] ends_with "/VCS" } { set vcs 1 } else { set vcs 0 } } when LB_FAILED { if { $vcs } { HTTP::redirect "http://www.site.com" } }The variable
must be set in HTTP_REQUEST because the Request Host header is not available in LB_FAILED.$vcs
Vernon_97235
Dec 02, 2015Historic F5 Account
If no pool members are up, LB_FAILED will be triggered. It can be triggered for other reasons, but perhaps you wish to redirect any time that the traffic cannot be forwarded because of a failure? If so:
when HTTP_REQUEST {
if { [HTTP::path] ends_with "/VCS" } {
set vcs 1
}
else {
set vcs 0
}
}
when LB_FAILED {
if { $vcs } {
HTTP::redirect "http://www.site.com"
}
}
The variable
$vcs must be set in HTTP_REQUEST because the Request Host header is not available in LB_FAILED.Mel_153429
Nimbostratus
Dec 03, 2015Hello, vernon
Thanks for your respond! The requirement that's being ask if they have to take SharePoint down for patching they want to redirect users that's hitting /VCS site to point to another website until patching is complete.
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