Forum Discussion
Eddie_27920
Nimbostratus
Feb 05, 2009iRule for 2 urls to same pool but different websites
OK so I'm very VERY new to this iRule stuff. We really haven't used our LTMs for much more than load balancing. What I'm looking for is a way to have lets say... www.abc.gov to a particular VIP with ...
hoolio
Cirrostratus
Feb 06, 2009Hi Eddie,
It sounds like all of the ISA servers answer for all of the web applications by parsing the Host header in the requests. If so, you could just create a single VIP pointing to a single pool containing all of the ISA servers. LTM will load balance the requests irrespective of which app the request is for.
If you do need to split out the requests to a specific pool based on the Host header, you can use HTTP classes (in 9.4 and higher) or a fairly simple iRule:
when HTTP_REQUEST {
Check the requested host header
switch [string tolower [HTTP::host]]{
"site1.example.com" {
pool site1_pool
}
"site2.example.com" {
pool site2_pool
}
default {
pool default_pool
}
}
}
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