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 pool WB_getmail.warnerbros.com_HTTPS
}
else {
redirect to outlook.office.com
HTTP::redirect https://outlook.office.com/owa/warnerbros.com
}
}
- Jad_Tabbara__J1Cirrostratus
Hello Chaithy,
try the following, It worked for me :
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] equals "Microsoft-Server-ActiveSync" || [string tolower [HTTP::uri]] equals "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" } }
Please give me a feedback,
While testing, you can check if any error is occuring in real time using
tailf /var/log/ltm
Share if something relevant hapens
Hope it helps,
Regards
- Stanislas_Piro2Cumulonimbus
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