Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Clear all filters
Answers

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

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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

} }

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Hi, Its Possible. You Just need to create DNS Alias Record & use iRule.

0
Comments on this Answer
Comment made 18-Jun-2015 by Mahmoud Eldeeb 781
how do i use irule, do you have a good example on it
0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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
0