Forum Discussion

Lloyd_Kim_55160's avatar
Lloyd_Kim_55160
Icon for Nimbostratus rankNimbostratus
Dec 06, 2005

IRULE HTTP FORWARD HELP

I was hoping someone could help me with an irule.

 

 

Situation:

 

 

We are trying to move over a client to another F5 and while the DNS replication takes place we would like to have a rule that forwards our client URL to the new IP address.

 

 

For example, when a client goes to support.test.com, I would like an irule that if any matches that url it will be redirected to the virtual on our new F5.

 

 

Is this possible?
  • You could do a HTTP::redirect to the other virtual. The only downside is that you will either need to have a unique domain name for the new virtual or redirect the client to the IP address (which will show up in their browser.

    ie.

    when HTTP_REQUEST {
      HTTP::redirect "http://other.domain.com[HTTP::uri]"
       - or -
      HTTP::redirect "http://1.2.3.4[HTTP::uri]"
    }

    Either way, the client will see that the domain changed in their request.

    -Joe
  • Thanks Joe,

     

     

    So in the client browser after the redirect it will show as either the IP address or the redirect url name? I guess there is no way around this.....

     

     

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    The way around it would be to do a rewrite in the host information both incoming and outgoing, rather than a redirect.

     

     

    This is definitely a more involved process, but you could most likely make it an invisible process to the user.

     

     

    If it's worth the trouble you can find more information about it here.

     

     

    -Colin