cancel
Showing results for 
Search instead for 
Did you mean: 

iRule- URI Rewrite with Pool

RAQS
Cirrus
Cirrus

Hi All,

 

Hope you all are doing good.

 

I have requirement as below :-

 

Whenever user hit “https:// exampledev.abc.com/arcgisportal/*” LB should rewrite it to “https:// example.abc.com /arcgis/*” and pass the traffic to pool which is having pool member as 10.130.115.174:7443.

 

Whenever user hit “https:// exampledev.abc.com/arcgisserver/*” LB should rewrite it to “https:// example.abc.com /arcgis/*” and pass the traffic to pool which is having pool member as 10.130.115.174:6443.

 

Whenever user hit “https:// exampledev.abc.com/webapps/*” LB should rewrite it to “https:// example.abc.com /webapps/**” and pass the traffic to pool which is having pool member as 10.130.222.90:443.

 

So in third requirement , i think rewrite is not required. It just when user hit “https:// exampledev.abc.com/webapps/*” then send the traffic to pool which is having pool member as 10.130.222.90:443.

 

Please let me know iRule for this.

 

Regards,

ShashankS

 

 

 

 

1 REPLY 1

Philippe_CLOUP
F5 Employee
F5 Employee

Hi shashanks,

i think that you also need to rewrite the response pages , no ?. I mean they will send you URIs that will be wrong if you don’t rewrite them back to the browser.

if that’s the case, then i would probably look into the rewrite profile instead of iRule.

 

see here : https://techdocs.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-implementations-12-1-0/17.h...

hope that help