Godswill
May 19, 2021Nimbostratus
Pool selection using I-rule or policy
Help please with the follow irule or policy that can work for me.
I have one virtual server for the follow two website.
Client puts mcd-test.who.gov/acr -----> go to Pool pool 172.120.202.116 :7878
Client puts mcd-test.who.gov -----> go to pool pool 172.120.202.116: 9999
whenever I applied the following irule to the virtual server, none of the website will load or work.
I have tried using policy and still get the same problem. Any help will be appreciated
when HTTP_REQUEST {
switch [HTTP::host] {
"mcp-test.who.gov/acr" {
pool mcd-test.who.gov_7878_pool
}
"mcd-test.who.gov/acr" {
pool mcd-test.who.gov_7878_pool
}
}
}