Forum Discussion
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
}
}
}
- spalandeNacreous
Try below
when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "acr*" { pool mcd-test.who.gov_7878_pool } default { pool mcd-test.who.gov_9999_pool } } }
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com