Forum Discussion
Need an Irule
What is an I rule for differentiating a traffic.
Requriment
If uri contains /xyz : it has to go to one of the member of the pool If URi contains /abc : It has to go to another member of the poolddd.d
Kindly provide an Irule Thanks Sachin M
5 Replies
- dfosborne2_2224
Nimbostratus
You should really looking into creating a policy, assuming you have bigip 11.4 or better. Works a charm for our applications. Then you just create two pools and give them meaningful names. Will be much clearer to those that come behind you to support it.
https://support.f5.com/kb/en-us/solutions/public/15000/000/sol15085.html
Apply the policy to your virtual. Ideally you shouldnt apply a pool to your virtual b/c if that pool goes down it takes your virtual with it.
- Stephan_Mierau
Employee
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] starts_with "/xyz") } { pool abc } else { pool def}
but I would recommend you to use a ltm policy for this ask
- jgranieri
Nimbostratus
you can use LTM HTTP Policies to do that
basically HTTP Policies are a GUI version of implemented easy HTTP parsing that a irule would do
- Sachin_M_258695
Nimbostratus
*Hi Thanks for the reply
I need a traffic to be flowed to same pool member not different.*
I have two pool members with same content inside.
thanks and Regards Sachin M
- Stanislas_Piro2
Cumulonimbus
when HTTP_REQUEST { if { ([string tolower [HTTP::uri]] starts_with "/xyz") } { pool mypool member 1.2.3.4 } else { pool mypool member 1.2.3.4 }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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