Forum Discussion

iRule's avatar
iRule
Icon for Cirrus rankCirrus
Jun 21, 2020

Virtual Server FQDN is redirecting to pool member IP

Dear Community,

 

When VIP URL of an application is browsed it automatically re-directs to IP URL of pool member. This virtual server contains a pool with three members. I need this application to be used only through VIP without re-directing URL to pool member IP. Your suggestions are highly appreciated to fix this issue.

 

Kind Thanks

Ahmad

9 Replies

  • Hello Ahamd,

     

    you potentially have an absolute link problem. the use of relative link is recommended which allows redirecting the user to the host of this request. to correct this it's quite simple, you just have to create a "rewrite" profile and put the matches that go well.

     

    Let me know if you need help for "rewrite profil" settings.

     

    regards

    • iRule's avatar
      iRule
      Icon for Cirrus rankCirrus

      ​Dear Youssef,

      I would be grateful if you provide guideline on "rewrite profile" to solve my issue.

       

      For example my VIP URL is http://myVIP:8083/welcome. When the users browse the VIP URL it redirects to http://1.2.3.4:8083/welcome/login URL where 1.2.3.4 is IP of one of pool member. This virtual server contains three pool members.

       

      Regards 

      Ahmad

      • youssef1's avatar
        youssef1
        Icon for Cumulonimbus rankCumulonimbus

        Hello Ahmad,

         

        So create your rewrite profile.

        • On general information -> rewrite mode, configure:

        URI Translation

         

        on URI Ttranslation check the following settings (they are already checks by default).

        • Request settings: Rewrite Headers
        • Request settings: Insert X-Forwarded-For Header
        • Response Settings: Rewrite Headers
        • Response Settings: Rewrite Content

         

        On URI rules configure your entry like that:

         

        You have to add this rules for each backend server...

         

        keep me in touch.

         

        regards

  • Dear Community,

    Please share any thoughts on my issue as I have not got a fix yet.