Forum Discussion
RossVermette
Mar 19, 2018Nimbostratus
How about something like this,
Create a DataGroup to map "host header names" to Pool mappings. example HOST2POOL_DG
"abc.com" := "POOL01",
"xyz.com" := "POOL02",
when HTTP_REQUEST {
set pool_select_value [class lookup [string tolower [HTTP::host]] HOST2POOL_DG]
pool $pool_select_value
}
or
simple irule:when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"abc.com" { pool POOL01}
"xyz.com" { pool POOL02}
}
}