Forum Discussion
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
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
- Mohd_Hazwan
Nimbostratus
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.
Hope it helps!
Mayur
- Mohd_Hazwan
Nimbostratus
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
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com