Forum Discussion
So something like this? Please see below. thanks!
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "example.100.f5.com"} {
node 10.10.10.77:44351
}
elseif {[string tolower [HTTP::host]] equals "example.200.f5.com"} {
node 10.10.10.77:44358
}
elseif {[string tolower [HTTP::host]] equals "example.300.f5.com"} {
node 10.10.10.77:44359
}
elseif {[string tolower [HTTP::host]] equals "example.400.f5.com"} {
pool Treas_CRM-UAT_3259_Pool <-- need 60 minute source address affinity profile
persist source_addr 255.255.255.255 3600
}
elseif {[string tolower [HTTP::host]] equals "example.500.f5.com"} {
pool Treas_ECC-UAT_3251_Pool <-- need 60 minute source address affinity profile
persist source_addr 255.255.255.255 3600
}
elseif {[string tolower [HTTP::host]] equals "example.600.f5.com"} {
pool Treas_BW-UAT_3258_Pool <-- need 60 minute source address affinity profile
persist source_addr 255.255.255.255 3600
}
else { discard }
}