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..
I have a pool and I need it to go to /exchange if it is in the url and just go straight through if it is anything else. That is the request but really I believe he needs it to go to /exchange if it is in the url and /owa for everything else.
I am trying to read/digest the 101 stuff here. Please help if you can.
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.