Forum Discussion
James_Quinby_46
Apr 14, 2011Historic F5 Account
Posted By JimB on 04/14/2011 08:07 AM
Cool.
So if I set a default pool, all that means is that if the irule doesn't have amatch for an inbound request the traffic will be directed to the deault pool rather than any of those specified in the iRule?
In that case, you could do something like this:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
www.foo.com { pool port_81_servers }
www.bar.com { pool port_82_servers }
}
default { pool whatever_your_default_pool_is }
}