Forum Discussion

Mohd_Hazwan's avatar
Mohd_Hazwan
Icon for Nimbostratus rankNimbostratus
Apr 21, 2020

Can F5 cater redirection with same URL with different URI path in different server

Hi,

 

Here is my question, in our case the redirected URI will have the same fqdn as per the source & will be hosted on a different virtual server and different physical server

 

From the user point of view. They will always see www.testing.com.my/ke (redirected URI) & once the DNS resolved the fqdn, the traffic will always be pointed to the (A) server. Whereas we need the URL to point to the (B) server (www.testing.com.my/ke).

 

The issue here is:

www.testing.com.my/ke belongs to (B) virtual server, 

while www.testing.com.my/jkm belongs to (A) virtual server. 

 

The fqdn www.testing.com.my will always pointed to (A) virtual server IP.

 

Can F5 redirect this or not?

 

Thanks

 

5 Replies

  • I will recommend you to use LTM policy to achieve your requirement. Please refer below.

     

     

    Hope it helps!

     

    Mayur

    • Mohd_Hazwan's avatar
      Mohd_Hazwan
      Icon for Nimbostratus rankNimbostratus

      Hi,

       

      I already used this method but it didn't work

       

      Is this policy suitable for use in same fqdn but different server?

       

       

  • Hello,

     

    Please make few modifications in policy as given below. Once condition is matched (i.e. if uri ends with /ke), set redirect to the location where you want to point request to. e.g. https://10.10.10.10/ke . So request will be redirected to mentioned location.

     

     

    I tried this policy in my lab setup and it is working fine. Redirection is happening for only matched traffic. Please try same in your environment.

     

    Also just make sure, you have selected execute all matching rule under strategy (pls see below snap). So it will match all the rules written under policy.

     

     

    Hope it helps!

    Mayur