21-Apr-2020 02:36
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
21-Apr-2020 03:09
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
21-Apr-2020 03:46
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
21-Apr-2020 04:49
I will recommend you to use LTM policy to achieve your requirement. Please refer below.
Hope it helps!
Mayur
22-Apr-2020 02:22
Hi,
I already used this method but it didn't work
Is this policy suitable for use in same fqdn but different server?
22-Apr-2020 04:46
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