Forum Discussion
Priceless_20483
Nimbostratus
Jun 26, 2015Pool selection based on URI
Hi, I'm running into an issue where i'm trying to select a pool based on the URI.
For example, when we go to http://site.com/app1, it goes to pool p_app1 and when we go to https://site.com/app2, it...
Stanislas_Piro2
Cumulonimbus
Jun 26, 2015the irule never match URI : /app2/login
and to redirect /app1 to /app1/ do a redirect and not HTTP::uri replacement. (I commented this part)
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/app1" {
pool p_app1
HTTP::uri "/app1/"
}
"/app1*" {
pool p_app1
}
"/app2" {
HTTP::redirect "/app2/"
pool p_app2
HTTP::uri "/app2/"
}
"/app2*" {
pool p_app2
}
}
}
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