Forum Discussion
URL Redirections with single VIP
Hi F5 Engineer,
Can you help us for this scenario.
FQDN: www.abc.com.ph public ip: 202.10.1.1
F5 Config: VIP: 202.10.1.1 POOL1 10.10.10.1 www.abc.com.ph POOL1 10.10.10.2 www.abc.com.ph/test1 POOL2 10.10.10.3 www.abc.com.ph/test2 POOL3 10.10.10.4 www.abc.com.ph/test3
Question: when client access auto redirect to pool 10.10.10.1. what if the client access the www.abc.com.ph/test1 or others, how can it redirect to Specific pool like POOL1.
Can you help us construct iRules for this scenario.
Thanks!
Den
1 Reply
- Stanislas_Piro2
Cumulonimbus
Hi,
you can create a Local traffic policy (version 11.4.0 and above)
- Policy requires : http
- Policy controls : forwarding
in this policy, create one rule for each pool:
rule 1:
-
condition :
- http-host host equals www.abc.com.ph
- http-uri path starts_with /test1
-
action :
- forward pool POOL2
rule 2:
-
condition :
- http-host host equals www.abc.com.ph
- http-uri path starts_with /test2
-
action :
- forward pool POOL3
rule default:
-
condition :
- http-host host equals www.abc.com.ph
-
action :
- forward pool POOL1
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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