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