Forum Discussion
Peter_Mainwarin
Nimbostratus
Apr 28, 2015Selecting a different node depending on URI
We are in the process of migrating services from an old Alteon load balancer to our F5 LTM 3900 (running 10.2.1).
Most of the migrations have been successfully transferred as they were quite straight...
Robert_Luechte2
Cirrus
Apr 28, 2015You can do this with an iRule that selects a pool or pool member based on the HTTP host header. Something like this:
when HTTP_REQUEST {
switch [HTTP::host] {
"www.example1.com" { pool example-pool member 10.0.0.1 }
"www.example2.com" { pool example-pool member 10.0.0.2 }
default { pool example-pool}
}
}
You can also do it with an If/elseif instead of a switch if you only have a couple of options.
- Peter_MainwarinApr 28, 2015
Nimbostratus
There are over 50 possible different matches for this VIP so setting up a pool looks like a great idea. Thanks for your answer.
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
