Forum Discussion
Stanislas_Piro2
Jan 23, 2017Cumulonimbus
Hi,
you can use local traffic policies instead of irule to do that.
if you want to use irule, use this one:
when HTTP_REQUEST {
switch -- [string tolower [HTTP::host]] {
"site1.com" {
pool pool1
"site2.com" {
pool pool2
"site3.com" {
pool pool3
}
log local0. "The selected pool is : [LB::server pool]"
}