Forum Discussion
Multiple URL to One Node
Hi All,
I Want to direct the traffic from two urls ( say abc.com and xyz.com) to single node (1.1.1.1 8080) and other domain/url to rest of the pool members via iRule. Please note that all members are in same pool.
Thanks in advance. Shashank
Hi ShashankS,
you could either
the requests for the givenswitch
values between two distinctHTTP::host
objects (e.g. your regular pool an another pool with justpool
as a member) or you could simply overwrite the load balancing decission by using the1.1.1.1:8080
command.node
iRule switching between two pools:
when HTTP_REQUEST { switch -exact -- [string tolower [HTTP::host]] { "abc.com" - "xyz.com" { pool single_node_pool } default { pool regular_pool } } }
Note: The example above can be combined with the Priority Group Activation feature for the "single_node_pool". By doing so you can define one or many standyby node(s) with a lower "Priority Group" value, so that those nodes will be used if the primary node will become offline.
iRule to target a specific node:
when HTTP_REQUEST { switch -exact -- [string tolower [HTTP::host]] { "abc.com" - "xyz.com" { node 1.1.1.1 8080 } default { pool multiple_nodes } } }
Cheers, Kai
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