Forum Discussion
abeny_894
Nimbostratus
Dec 12, 2008HTTP::uri problem
Deal all,
I have got some problems on [HTTP::uri], for example:
_________________________________________________________
http://www.foo.com/development/ --> Pool 1
...
hoolio
Cirrostratus
Dec 18, 2008If you don't use -glob and add a wildcard to the /development case (like /development*), the case will only match when a client makes a request for exactly /development. If you want all requests which start with /development to go to the pool_development, you could use -glob and a wildcard:
switch -glob [HTTP::uri] {
"/development*" {
pool pool_development
}
...
I'm not sure what you mean by "however, it will go to find the exactly path page ( /development ) in the pool members". The iRule isn't modifying the URI--it's just selecting the pool based on the URI.
Aaron
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
