Madhukara_33449
Nov 06, 2017Nimbostratus
IRULES 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
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
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
}
}