Aaron_107144
Mar 11, 2011Nimbostratus
Redirect to pool based on incoming HTTPS URI
I've been digging and testing all day, but I'm coming up blank.
We've had great success so far with the LTMs marshaling traffic from the internet to the Exchange TMG servers for Outlook Anywhere, OWA, and the like (Exchange 2010)
So yesterday, I got a request from our Exchange admin to redirect HTTPS traffic for Outlook Anywhere and autodiscover to a new set of IP's - While leaving the rest of the traffic to pass as usual to the OWA virtual server/pool. So basically I'm trying redirect incoming Exchange 2010 traffic to a different pool based on the URI.
As much as I'd like to just use an HTTP redirect (easy) - The TMG servers' security requires that the requested URLs remain intact. So I can't substitute the VIP of the new VS in the URL.
The rule I've come up with is this:
when HTTP_REQUEST
{
if {([HTTP::uri] starts_with {/rpc}), or ([HTTP::uri] starts_with {/oab}), or ([HTTP::uri] starts_with {/ews}), or ([HTTP::uri] starts_with {/autodiscover})}
{ pool TMG_OA_Pool }
else { pool TMG_OWA_Pool }
}
When I try to apply this iRule to my incoming HTTPS Virtual Server, I get an error:
HTTP_REQUEST event in rule (Exch_OA_Redirect) requires an associated HTTP or FASTHTTP profile on the virtual server Exch_TMG_Edge_VIP
When I add an HTTP profile to the VS (It's currently "none" because it's an HTTPS VS) OWA breaks. I added the iRule anyway, and I can see the rule getting hit, but nothing makes it to the OA pool counters.
Any ideas? Am I going about this wrong?