Forum Discussion
Rob_76452
Nimbostratus
Mar 15, 2010brand new please help redirect based on uri
My sys admin is saying this is really simple, you should already be done but I'm lost. My first experience with F5's. I think the request is simple if you know about F5 though. anyways..
...
The_Bhattman
Nimbostratus
Mar 15, 2010Hi Rob,
I suppose taking the same concept as I explained you can do the following
when HTTP_REQUEST {
if {[HTTP::uri] eq "/exchange" } {
pool exchange_pool
} else {
pool other_pool
}
}
Or you could right up using the SWITCH command
when HTTP_REQUEST {
switch -glob [string tolower[HTTP::uri] {
"/exchange" { pool exchange_pool }
default {pool other_pool }
}
}
I hope this helps
Bhattman
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
