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..
...
hoolio
Cirrostratus
Mar 17, 2010Hi Rob,
A relative URI should always start with a /, so I'm not sure how that example could be working if you don't have a / or * at the start of the URIs.
You can combine multiple switch cases that have the same action using syntax like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/exchange*" -
"/owa*" {
log local0. "Matched exchange or owa uri for [HTTP::uri]"
pool tohtca-https
}
default {
log local0.debug "Matched default for [HTTP::uri]"
HTTP::uri "/OWA"
HTTP::uri "[HTTP::uri]OWA"
}
}
}
Also, I'd check the default action to make sure that appending the string OWA to the end of any unmatched URI works. I'm not sure what else you have going through the VIP, but I could imagine that append breaking most other requests.
Aaron
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
