Forum Discussion
sandiksk_35282
Altostratus
Aug 15, 20182 urls pointing to same VIP
I have a req where we have 2 urls pointing to same VIP.
1 url need to balance across pool of 2 servers without sticky and least connections .
2nd url need to balancer across same pool of 2 servers ...
Samir_Jha_52506
Noctilucent
Aug 15, 2018Hope two url has same IP? Yes. And pointing to same VIP..
I am thinking bit different way and try with below iRule.
-
As per comments, both case least connection method has used right.. correct me. I will configure pool with least connection method.
-
Attach iRule to VIP n match traffic based on url condition.
. Hope it will work.Not tested till nowwhen HTTP_REQUEST { if { ([HTTP::host] equals "www.xyz.com")} { persist cookie pool pool1 } elseif { ([HTTP::host] equals "www.pqr.com")} { persist none pool pool1 } else { reject } }
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