Forum Discussion
steve_cross_650
Nimbostratus
Nov 14, 2006NEWBIE: iRule for choosing pool based on URL
I am trying to point my subdomain towards a different pool of servers then my main site. For example:
www.mywebsite.com -> goes to pool a
beta.mywebsite.com -> goes to pool b
This is what i ...
hoolio
Cirrostratus
Nov 15, 2006The rule looks fine. Just make sure that you have it associated with the VIP under the VIP's resources tab.
You can add a log statement to determine the exact host and URI the client is requesting:
when HTTP_REQUEST {
log local0. "client: [IP::remote_addr] -> [HTTP::host][HTTP::uri]"
if { [string tolower [HTTP::host]] equals "beta.mywebsite.com"}{
pool pool_A
}
else {
pool pool_B
}
}Aaron
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
