Forum Discussion
Colin_Walker_12
Jun 23, 2011Historic F5 Account
So you're looking at changing your iRule from saying "if URL1, pool 1, if URL2, pool2" etc. to "if URL1, or URL2, or URL3, pool1"? If so, it would look something like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/paymentResponse1.jsp" -
"/paymentResponse2.jsp" -
"/paymentResponse3.jsp" -
"/paymentResponse4.jsp" -
"/paymentResponse5.jsp" {
pool paymentresponse_pool
}
}
}
Let me know if you're looking to achieve something else.
Colin