Forum Discussion

AlbertoCarlone_'s avatar
AlbertoCarlone_
Icon for Nimbostratus rankNimbostratus
Jul 06, 2017
Solved

iRule redirect to another vip with same IP but diffrent port

Hi all, i need to set an iRule to a VS because we want to balance incoming traffic to a specific pool, but if the request have "/XXX" in the string, the connection has to be redirected to another VS...
  • eben_259100's avatar
    Jul 06, 2017

    Hi Alberto

    when HTTP_REQUEST{
        switch [HTTP::uri] {
            "/xxxx"{
              HTTP::Redirect "http:///"
              }
              default {pool pool_SERVICE_PORT }
        }
    }
    

    HTH Eben.