Forum Discussion
Redirect to different Pool based on URL
- May 16, 2018
There are many iRule available in devcentral. But I will suggest you to use f5 policy to match URI n redirect traffic to pool... Create a new policy with properties:
Policy requires http Policy controls forwarding For each policy rule, define:
condition : http-uri parh starts_with /bugid action : forward pool pool_x Create a default rule without conditon assigning the default pool..
Example iRule
when HTTP_REQUEST { set uri [string tolower [HTTP::path]] switch -glob $uri { "/book/" { pool pool_X } "/manage/" { pool pool_Y } "/checkin/" { pool pool_Z } } }
Hi,
I advise you to use Policies without Irule (Local Traffic ›› Policies : Policy List). It's more simple to maintain and manage for this kind of needs:
Create a policy then in your rule set the following condition:
Match all of the following conditions: HTTP Host is : app1.domain.co.uk
Do the following when the traffic is matched: Forward traffic to pool ...
And you can add as many rules as you like...
Then you have to attached this policy to your VS...
Let me now if you need details.
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