Host based irule & URI to point to backend pool
Hi,
We have a requirement to forward application access to backend server pool based on "host" and "uri".
Below is the requirement.
If host is "abc.local.ae" & uri is "/malla" -> then pool - "abc-pool:8080"
If host is "abc.local.ae" & uri is "/mise" -> then pool - "abc-pool:8081"
Please let me the iRule syntax whih will meet the above requirement.
Hi Preet_pk
If site/url is not working after mapping pool directly to the vServer then the issue is something else.
Can you verify below configurations ?
1. SNAT settings on the vServer. If backend server's default gateway is not F5 then make sure to enable SNAT settings. You can set it to AUTOMAP.
2. Is your pool showing up on the F5? Check if you have correct routing on the F5 to reach backend server.
Once this is sorted. then you can test the iRule.