Forum Discussion
Rob_Wotton_8024
Nimbostratus
Oct 21, 2009Multiple Pool Redirection Based on IP
Hi
I am struggling with an iRule at the moment, in simple English when the URI starts with /product1 and is from IP address 1.1.1.1 we need to use pool product1-CustomerA. If the URI st...
Rob_Wotton_8024
Nimbostratus
Oct 21, 2009Thanks for the logs, have found those.
I am still a little confussed by the * part.
If I enter "http://10.44.17.90/product1" into a browser, I get a 404 page not found error.
If I enter "http://10.44.17.90/product1/default.htm" it returns the page.
The iRule part of this is:-
switch -glob [string tolower [HTTP::uri]] {
"/product1*" {
log local0. "[IP::client_addr]:[TCP::client_port]: Matched /product1 check"
pool product1
}
I am not sure if it matters as the pages are called explicitly from our main portal, it would just be nice to have it work.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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