Forum Discussion
Bob_10976
Nimbostratus
Feb 09, 2012Redirect to different Pool based on Host
Hello all...
I'm in the process of migrating several site from one server group to another, and since I'm only doing a few at a time I want to be able to redirect request for those sites that have been moved to the new pool and the not default pool. I have a similar rediret rule that I've used based on path, however I'm thinking I can simply change the "path" to "host", would that be correct?
when HTTP_REQUEST {
switch -glob "[string tolower [HTTP::path]]" {
"/bob*" -
"/shopping*" {
pool secure2.test.domain.com
}
default {
pool secure.test.domain.com
}
}
}
Thanks,
Bob
3 Replies
Sort By
- nitass
Employee
yes, it should work just fine.when HTTP_REQUEST { switch [string tolower [HTTP::host]] { "new.domain.com" { pool new_pool } default { pool default_pool } } }
- Bob_10976
Nimbostratus
Thanks for the confirmation.. - Asim_Sharfuddin
Nimbostratus
when HTTP_REQUEST {
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects