For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

rdayal_280549's avatar
rdayal_280549
Icon for Nimbostratus rankNimbostratus
Jul 20, 2016

HTTP/HTTPS redirect

Hi,

 

Is it possible to redirect xyz.com (Public facing URL, hosted in our DC) to redirect to abc.com (hosted at client DC)? Currently we are running on LTM Version 11.6.0.

 

Any help would be really appreciate

 

Thank You

 

8 Replies

  • Hi,

    You can use the following irule :

    when HTTP_REQUEST {
        if { [HTTP::host] eq "xyz.com" } {
            HTTP::respond 302 Location "http://abc.com[HTTP::uri]" Connection Close
        }
    }
    

    You can also use LTM policies instead of irules. It does works for both irule and LTM policy if you have a Standard Virtual Server with http profile associated.

    If you have an https website, you need to offload SSL on the Virtual Server by adding a clientssl profile.

    • rdayal_280549's avatar
      rdayal_280549
      Icon for Nimbostratus rankNimbostratus

      Thank Yann,

       

      Does this irule sill work if abc.com is on different network (Internet)?

       

      Thank You

       

    • boneyard's avatar
      boneyard
      Icon for MVP rankMVP

      it doesn't matter where it is, it is just being send to the client as text, as long as the client can resolve it with DNS it will work.

       

  • Hi,

    You can use the following irule :

    when HTTP_REQUEST {
        if { [HTTP::host] eq "xyz.com" } {
            HTTP::respond 302 Location "http://abc.com[HTTP::uri]" Connection Close
        }
    }
    

    You can also use LTM policies instead of irules. It does works for both irule and LTM policy if you have a Standard Virtual Server with http profile associated.

    If you have an https website, you need to offload SSL on the Virtual Server by adding a clientssl profile.

    • rdayal_280549's avatar
      rdayal_280549
      Icon for Nimbostratus rankNimbostratus

      Thank Yann,

       

      Does this irule sill work if abc.com is on different network (Internet)?

       

      Thank You

       

    • boneyard's avatar
      boneyard
      Icon for MVP rankMVP

      it doesn't matter where it is, it is just being send to the client as text, as long as the client can resolve it with DNS it will work.