Forum Discussion

3 Replies

  •  ,

    If you want redirection specific to above host and uri, you can use below iRule. But if you need same redirection for all host with same URI and/or same host with different uri, you need to modify iRule statements accordingly. Let me know if below iRule works for you.

    when HTTP_REQUEST {
    if { [HTTP::host] contains "adeniyiqa.ngasystem.com" }{
    if { [HTTP::uri] starts_with "/cmwm" }{ 
    HTTP::redirect http://adeniyiqa.ngasystem.com:8003/cmwm
    }
    } 
    }

    Mayur

    • Adeola's avatar
      Adeola
      Icon for Nimbostratus rankNimbostratus

      Hi Mayur,

      Thanks for a quick response.

      Now I cannot attached it to the VS. It generate error below:

      "01071912:3: HTTP_REQUEST event in rule (/Common/adeniyiqa

      ) requires an associated HTTP or FASTHTTP profile on the virtual-server (/Common/adeniyiqa.ngasystem

      .vs.tcp.8003)."

       

      If I associate HTTP OR FASHTTP profile to the VS it stop working completely because the backend is not build on http.

  • Is it possible for you to share Virtual Server & backend pool member configuration here to verify same?

     

    Mayur