Forum Discussion
Chaithy
Aug 17, 2017Nimbostratus
else not working
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "Microsoft-Server-ActiveSync" || [string tolower [HTTP::uri]] equals "EWS" }
{
sent to default pool
...
Stanislas_Piro2
Aug 17, 2017Cumulonimbus
Hi,
This Irule can't work for active sync and EWS... uri always starts with /, string tolower convert the uri to lowercase and is compared with uppercase strings..
when HTTP_REQUEST {
if { [HTTP::path] equals "/Microsoft-Server-ActiveSync" || [HTTP::path] starts_with "/EWS" } {
sent to default pool
pool WB_getmail.warnerbros.com_HTTPS
} else {
redirect to outlook.office.com
HTTP::respond 302 noserver "Location" "https://outlook.office.com/owa/warnerbros.com"
}
}
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