Forum Discussion
how to pass a traffic hitting a single vs with different url (subdomains) to different servers?
if i have two different url (RA.abc.com & FB.abc.com) are serving by two different RA.abc.com --->> server-1 FB.abc.com --->> server-2
how do i configure a single vs that handle the traffic for both urls
4 Replies
- nsk1
Nimbostratus
when HTTP_REQUEST { log local0. "http request: client <[IP::client_addr]>, host <[HTTP::host]>, uri <[HTTP::uri]>"
switch -glob [string tolower [HTTP::uri]] { "/xx/v1/RA/xyz/*"
pool pool_RA"/xx/v1/FB/xyz/*"
pool pool_FB} }
- Samir_Jha_52506
Noctilucent
Hi, Its Possible. You Just need to create DNS Alias Record & use iRule.
- Mahmoud_Eldeeb_
Cirrostratus
how do i use irule, do you have a good example on it
- Stanislas_Piro2
Cumulonimbus
Hi,
Starting with version 11.4, you can use Local traffic policies.
it is easier to configure:
Menu Local traffic --> Policies
Create a new policy with :
- require : http
- Action : forwarding
Create one rule per hostname
- Condition : http host host RA.abc.com
- Action : Forward pool pool_RA
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