Forum Discussion
flefranc_29890
Nimbostratus
Nov 05, 2008http redirection to an IP address of a pool member
Hello,
I want to redirect all http traffic to a VIP address to the IP address of a member of a pool.
I begin like this in a i-rule :
when HTTP_REQUEST {
i...
hoolio
Cirrostratus
Nov 06, 2008Sorry about that. It looks like HTTP:: commands won't work in LB_SELECTED. Else, you should be able to use LB::select to force a pool member selection and then redirect to the selected IP:
when HTTP_REQUEST {
set pool_info [LB::select]
log local0. "The LB choice is: $pool_info. Redirecting to http://[getfield $pool_info " " 4]"
Redirect to selected pool member's IP address
HTTP::redirect "http://[getfield $pool_info " " 4]"
}
Aaron
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