Forum Discussion
Using irule which inspects perticular URI
My current set up is as follows (I have used random IP and domain name)
External facing VIP (224.22.61.41, domain name ) It has four pool members - 192.168.1.21
- 192.168.1.20
- 172.168.1.1 -172.168.1.2
we want any client request to URI to be load balanced to 172.168.1.1 and 172.168.1.2 only and rest of other request should be directed to 192.168.1.20&21
Could someone please help me out with the irule that can be attached to the VIP ?
Hello,examples from the page below would probably solve your problem: https://devcentral.f5.com/wiki/iRules.HTTP__uri.ashxExamples_5
- Vijay_ECirrus
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] eq "/review1.htm.htmlone" } { pool POOL_A } else { pool POOL_B } }
Use 2 pools. The above iRule is untested. You may have to tweak it to suit your needs.
- tykkz_370594Nimbostratus
Hello,examples from the page below would probably solve your problem: https://devcentral.f5.com/wiki/iRules.HTTP__uri.ashxExamples_5
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