aFlex to Selectively Insert /owa for Exchange 2010
in aFleX
Posted by kberton
A10's Deployment Guide for Exchange 2010 provides the following aflex script to insert /owa into the path of any request where it doesn't already exist. However, this seems to break the Exchange Control Panel (ECP) which is accessed under /ecp. Any advice on editing this script to accommodate requests to /ecp and not insert /owa in front of it, resulting in /owa/ecp/? Thanks.
when HTTP_REQUEST {
# transparently insert ″/owa″ if not already present
if {not ([HTTP::uri] starts_with ″/owa″)} {
HTTP::uri /owa[HTTP::uri]
}
}
A10's Deployment Guide for Exchange 2010 provides the following aflex script to insert /owa into the path of any request where it doesn't already exist. However, this seems to break the Exchange Control Panel (ECP) which is accessed under /ecp. Any advice on editing this script to accommodate requests to /ecp and not insert /owa in front of it, resulting in /owa/ecp/? Thanks.
when HTTP_REQUEST {
# transparently insert ″/owa″ if not already present
if {not ([HTTP::uri] starts_with ″/owa″)} {
HTTP::uri /owa[HTTP::uri]
}
}
0
Comments
If I understand, you want to insert "/owa" to the client's request only if the client's request
. doesn't start with "owa"
. and doesn't start with "ecp"
In such case, the aFleX would be:
when HTTP_REQUEST {
# transparently insert "/owa" if not already present and not with "ecp"
if {not ([HTTP::uri] starts_with "/owa") and not ([HTTP::uri] starts_with "/ecp")} {
HTTP::uri /owa[HTTP::uri]
}
}
Note:
For more information about A10 deployment for Microsoft Exchange applications, look at A10 deployment guide:www.a10networks.com/resources/deployment..._exchange_server.php
I had an installation recently that only wanted to redirect when the URI was blank. This aFlex work in this case.
when HTTP_REQUEST {
if { ([HTTP::uri] equals "/") } {
HTTP::redirect https://[HTTP::host][HTTP::uri]/owa
}
}