Forum Discussion
Big-IP LTM - load balancing incoming request to 2 different 'paths' on Member Pool
Hi Mohamed,
Thanks for your reply.
Basically, we want to load balance (round robin for e.g) to 2 servers in the member pool - but before passing it on to the servers, we need the Virtual Server to re-write the URL path to a different specific folder on each server:
- if going to server 1 (https://server1/folder/folder/server1)
- if going to server 2(https://server1/folder/folder/server2)
The reading I've done so far suggests when we use the HTTP::redirect iRule, the F5 replies directly to the client and doesn't load balance (even then sending to 2 different locations is a big ask).
In the mean time, we are looking into completing this task using re-directs on the individual servers, as I think that makes more sense.
Might be as easy as this:
Not sure if LB::server name returns the correct information
when LB_SELECTED {
# log local0. "server [LB::server name]"
set path "/folder/folder/[LB::server name]"
HTTP::host "[LB::server name].local.domain"
HTTP::path $path
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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