Forum Discussion

thornade_91981's avatar
thornade_91981
Icon for Nimbostratus rankNimbostratus
Dec 12, 2007

Loadbalance HTTP::redirect

Hi,

 

 

I'm looking for an irule to do the following :

 

 

when LB_SELECTED {

 

set ::WServer [LB::server addr]

 

HTTP::redirect "http://$::WServer/"

 

}

 

 

I have a pool of web servers and I want to redirect (http::redirect) clients to this pool.

 

 

The problem here is that LB_SELECTED method did not allow HTTP::redirect action.

 

 

Does someone had any idea to do this ?

 

 

Thorn

 

 

 

 

1 Reply

  • The same question was asked in this post (Click here), but no answer was suggested. Anyone have ideas on how you could issue a redirect based on the selected pool member? If there isn't a clean solution, could you mark the node down in LB_SELECTED and then issue the redirect from the LB_FAILED event?

     

     

    Aaron