Forum Discussion
iRule to Forward Traffic Based on URL Name
- Feb 23, 2022
Hi
below irule will help
https://support.f5.com/csp/article/K27803480
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] eq "host1") {
pool pool1
} elseif { ([string tolower [HTTP::host]] eq "host2") {
pool pool2
}
}
Hi,
You have two options, irules or LTM policies, follow the next article that guides you in the configuration:
https://f5-agility-labs-adc.readthedocs.io/en/latest/class3/module6/lab6.html
Thanks for the reply, but what the guide shows there is to forward traffic based on the URI (or path). I am looking specifically for different hostnames(URL names) which i am not sure what they call in the irule, http host or header??? so i am not clear how to achive this.
Need to extract the URL name through irule and based on the name, forward it to the pools.
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