Forum Discussion

Siddharth_Sezhi's avatar
Siddharth_Sezhi
Icon for Nimbostratus rankNimbostratus
Oct 17, 2006

pool redirection based on webaddress

Hi,

 

 

I have request from a client, they wanted all traffic thats coming to their site https://www.deve.com redirected to a pool and the traffic to https://deve.com redirected to another pool. they wanted a same VIP pointing to both webaddress. Kindly help me out.

 

 

Thanks in advance.

 

 

Regards

 

Siddharth S

1 Reply

  • If you want to direct the requests based on the HTTP host header, you can use a rule like this:

    
    when HTTP_REQUEST {
       set host [string tolower [HTTP::host]]
       if { $host ends_with "deve.com" }{
          if { $host == "www.deve.com" }{
             pool www.deve.com_pool
          }
          elseif { $host == "deve.com" }{
             pool deve.com_pool
          }
       }
       else {
          pool default_pool
       }
    }

    You will need to configure a VIP with a clientssl profile.

    Note that as this is HTTPS, you will need to have already presented a certificate for www.deve.com, deve.com or *.deve.com (wildcard cert) in order to decrypt the traffic and apply the rule.

    If you don't use a wildcard cert, the browser will prompt the user to accept the cert when a client makes a request to the VIP using a hostname that isn't listed in the CN field of the cert.

    Aaron