Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Web Directory based routing on F5 Big IP

rakesh_Nair
Nimbostratus
Nimbostratus

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 1

Gym
Cirrus
Cirrus

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:

 

0691T000009hjS9QAI.png