Forum Discussion

rakesh_Nair's avatar
rakesh_Nair
Icon for Nimbostratus rankNimbostratus
Jul 29, 2020

Web Directory based routing on F5 Big IP

Hi we have a pair of F5 in active active configuration on BIG-IP 2000. I want to setup routing based on web directory .

what i mean is

https://foobar.com should got to a different pool

and https://foobar.com/api should go to a different pool .

How do i achieve this?

1 Reply

  • You can do this with a local traffic policy, or (less efficient) an irule, attached to the VS. The irule would use HTTP::uri, coupled with the "pool" command. If you set a default pool for the VS, then all you need your rule to do is detect exceptions, and over-ride the default with your other pool.

     

    Here's what a policy would look like if you didn't set a default pool: