Forum Discussion
Michael_Rose_11
Nimbostratus
Oct 31, 2008Can an iRule loop through values from a file or website?
Greetings all,
Long time reader/user, first time poster.
We are using a wildcard DNS entry to send all *.company.com requests to a specific pool. However, we have another pool se...
dennypayne
Employee
Oct 31, 2008Sure just create a data group with the hostnames that need to go to the other pool, let's say call it "bigcustomers".
Then use the matchclass command to look for the HTTP host in the request:
when HTTP_REQUEST {
if { [matchclass [HTTP::host] equals $::bigcustomers] } {
pool bigcustomers
} else {
pool allrequests
}
}
You can use an external data group (also called a class file) if the hostnames need to be updated dynamically, then you can just upload a new class file when that happens. Otherwise a plain data group will work fine.
Denny
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
