Forum Discussion

Manu_Nair's avatar
Manu_Nair
Icon for Cirrus rankCirrus
Feb 22, 2022

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 assista...
  • neeeewbie's avatar
    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
        }
    }