Forum Discussion
harton
Feb 23, 2011Nimbostratus
Host to pool mapping
Hello, we are running version 9.4.6, and I've been asked to see if there is a way to map hosts to pools to reduce the number of public IPs we use. Previously, we were doing the normal www...
Chris_Miller
Feb 23, 2011Altostratus
Either a switch statement or a datagroup mapped to pool name as value would be my choices.
In the example above, you don't actually use both the switch statement and the if/else. It would look like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"customer1*" { pool pool1 }
"customer2*" { pool pool2 }
"customer3*" { pool pool3 }
}
}
If there's a character mapping between customer and pool, you could make this extremely easy...where something like "customerx = poolx"
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