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

 

 

 

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    You want to send a redirect to the client with the internal IP address of the pool member? Would that even work? Are you using internet routable IP addresses internally?

     

     

    Perhaps what you're looking for is to do an HTTP::redirect to a domain/IP that points to a VIP, with that pool as a resource?

     

     

    Colin
  • Yes, my pool is composed of public IP addresses (internet routable IP).

     

     

    I have a public VIP hosted on my loadbalancer. I use a pool to do health check on servers hosted somewhere else on Internet. And I want to redirect my clients to available server from that pool using round robin method.

     

     

    Thorn