cancel
Showing results for 
Search instead for 
Did you mean: 

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

Mohd_Hazwan
Nimbostratus
Nimbostratus

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 5

So your requirement is,

 

If user access www.testing.com.my/ke , it should go to 'B' VS

and if  www.testing.com.my/jkm then it should go to 'A' VS

 

Please correct if my understanding is wrong. Also do you have only these specific URIs?

 

Mayur

 

 

Yes sir..you correct

 

can i do redirect for this because we use different server and virtual server?

 

https://www.testing.com.my/ke & https://www.testing.com.my/jkm

 

Thanks

 

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

 

0691T000008crxsQAA.png

 

Hope it helps!

 

Mayur

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.

 

0691T000008ctBvQAI.png

 

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.

 

0691T000008ctC5QAI.png

 

Hope it helps!

Mayur