Forum Discussion
Kevin_Stewart
Sep 12, 2013Employee
Then you just need to modify the data group to reflect that. Example:
"www.domain1.com" := "10.10.10.11 80"
"www.domain2.com" := "10.10.10.11 80"
"www.domain3.com" := "10.10.10.11 80"
"www.domain4.com" := "10.10.10.11 80"
...
"www.domain500.com" := "10.10.10.11 80"
"www.domain501.com" := "10.10.10.12 80"
"www.domain502.com" := "10.10.10.12 80"
"www.domain503.com" := "10.10.10.12 80"
"www.domain504.com" := "10.10.10.12 80"
...
"www.domain1010.com" := "10.10.10.12 80"
though I think at this point you should probably just use two pools:
"www.domain1.com" := "pool1"
"www.domain2.com" := "pool1"
"www.domain3.com" := "pool1"
"www.domain4.com" := "pool1"
...
"www.domain500.com" := "pool1"
"www.domain501.com" := "pool2"
"www.domain502.com" := "pool2"
"www.domain503.com" := "pool2"
"www.domain504.com" := "pool2"
...
"www.domain1010.com" := "pool2"
and then modify the iRule accordingly:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::host]] equals my_domain_dg] } {
pool [class match -value [string tolower [HTTP::host]] equals my_domain_dg]
}
}