Forum Discussion

Goldz_180077's avatar
Goldz_180077
Icon for Nimbostratus rankNimbostratus
Sep 22, 2015

URL Redirections with single VIP

Hi F5 Engineer,

Can you help us for this scenario.

FQDN: www.abc.com.ph public ip: 202.10.1.1

F5 Config: VIP: 202.10.1.1 POOL1 10.10.10.1 www.abc.com.ph POOL1 10.10.10.2 www.abc.com.ph/test1 POOL2 10.10.10.3 www.abc.com.ph/test2 POOL3 10.10.10.4 www.abc.com.ph/test3

Question: when client access auto redirect to pool 10.10.10.1. what if the client access the www.abc.com.ph/test1 or others, how can it redirect to Specific pool like POOL1.

 Can you help us construct iRules for this scenario.


 Thanks!

 Den

1 Reply

  • Hi,

     

    you can create a Local traffic policy (version 11.4.0 and above)

     

    • Policy requires : http
    • Policy controls : forwarding

    in this policy, create one rule for each pool:

     

    rule 1:

     

    • condition :
    • action :
      • forward pool POOL2

    rule 2:

     

    • condition :
    • action :
      • forward pool POOL3

    rule default:

     

    • condition :
    • action :
      • forward pool POOL1