Forum Discussion
Jan 12, 2017
Hi and welcome to the forum!
I understood the question a bit differently and thought you wanted to choose pool based on "domain.com" if the request was for ";.
This should do it in that case. Haven't tested it for syntax though.
when HTTP_REQUEST {
set [domain [getfield [HTTP::host] ":" 1] 2]
if { [class match $domain eq yourdatagrouplist] }{
pool [class lookup $domain yourdatagrouplist]
} else {
pool yourdefaultpool
}
}
As for the SSL profile you should probably look into SNI:
https://devcentral.f5.com/articles/ssl-profiles-part-7-server-name-indication
Hope that helped.
/Patrik