Forum Discussion
What will happen for the pool redirection if all members are down
Steve/nitass,
Really appreciate your efforts.
Sorry I wasn't clear about descripting the issue clearly.
when HTTP_REQUEST {
if {([HTTP::header exists "X-Forwarded-For"]) and ([string tolower [HTTP::uri]] contains "/xyz/string-1")} {
switch -glob [HTTP::header values "X-Forwarded-For"] {
"some-value" {
HTTP::redirect "http://www.example.com/xyz/string-2"
pool Pool_X
event disable all
}
}
}
}
Issue: "event disable all" is the cause of URI leaking. The initial request forwarded to Pool_X while subsequent requests are not.
Resolution: using "return" instead which will keep processing subsequent requests but exits from the currently executing event in the currently executing iRule.
Thanks again ,,
https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/aft/1174233/asg/50/Default.aspx
BR,
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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