Manu_Nair
Feb 22, 2022Cirrus
iRule to Forward Traffic Based on URL Name
Hi,
I am in a situation where we have shortage of IP address and am looking for an alternative way to forward traffic to pools based on URL. I am not really good with iRule hence looking for assistance and I have seen posts based on URI, but i am looking for assistance with URL.
Eg: 1 VIP and based on the url name, the traffic needs to be forwarded to Pool.
Help on this is appreciated
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
}
}