Forum Discussion
hooleylist
Nov 06, 2008Cirrostratus
Sorry 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