Forum Discussion
cymru81
Altocumulus
Sep 03, 2019irule help based on uri
Hi, ive done some searching on here but cannot find the exact help i need. We have the following scenario, can someone assist with an irule that will achieve this please? we have one VIP that ...
iaine
Nacreous
Sep 03, 2019Hi
You could do something like
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/live"}{
pool pool_live
} elseif {[HTTP::uri] starts_with "/test"}{
pool pool_test
}
}DanS92
Cirrus
Sep 03, 2019Another way would be with a Local Traffic Policy instead of an iRule. Under Local Traffic > Policies > Policy List, create a new policy. You'd need a rule in the policy like this for the first request:
The rule for the second URI would be built the same way. Then apply the policy to the VIP.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
