Forum Discussion

Manu_Nair's avatar
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


    below irule will help

    when HTTP_REQUEST {
      if { ([string tolower [HTTP::host]] eq "host1") {
            pool pool1
        } elseif { ([string tolower [HTTP::host]] eq "host2")  {
            pool pool2