Forum Discussion
Madhukara_33449
Nimbostratus
Nov 06, 2017IRULES HELP
Hi,
Im new to F5, i need help with the IRULE for managing multiple URl PREFIX as shown in the table
Need your guidance on the same.
Thanks in advance
1 Reply
- Lee_Sutcliffe
Nacreous
You don't need an irule to do this anymore you can do it with a traffic profile. Just create two pools using the ports specified in your table and configure a policy to route based on URI:
However if you want to use iRules, create two datagroups with the relevant URIs and use something like this:
when HTTP_REQUEST { if {[class match [HTTP::uri] starts with "pool-80-dg"] { pool pool-80 } if {[class match [HTTP::uri] starts with "pool-8080-dg"] pool pool-8080 } }
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects