Forum Discussion
Born_7758
Jun 23, 2011Nimbostratus
Directing traffic to a specific pool member
Hello, I would like to forward traffic to a specific pool member depending on what the URL is. Currently I have an iRule that directs traffic to 1 of 5 pools depending on the URL. Instead ...
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
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects