Forum Discussion
Mike_Pones_6391
Nimbostratus
Jun 21, 2005Simple Rule ? (I think)
This will be my first time implementing rules on an BIGIP so I have a few quick questions. I have about 30 different URL's that will be hitting my BIGIP (ex.. myweb.com, myweb.org, test.myweb.com) a...
Scott_Tennican_
Jun 21, 2005Historic F5 Account
First, I think you want to test the http_host not the http_uri.
If there is a single substring which identifies the pool to select,
use a simple "contains" operator:
rule myrule {
if (http_host contains "myweb") {
use pool pool1
}
else if (http_host contains "bobweb") {
use pool pool2
}
else {
use pool pool3
}
}
On the other hand, if there are multiple substrings which identify the
pool to select, use a "contains one of" operator:
class their_class {
"bobweb"
"danweb"
}
class our_class {
"yourweb"
"myweb"
}
rule myrule {
if (http_host contains one of our_class) {
use pool pool1
}
else if (http_host contains one of their_class) {
use pool pool2
}
else {
use pool pool3
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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