Forum Discussion
Karthik_Krishn1
Cirrostratus
Oct 30, 2015Restrict access to unpublished directories in Exchange
Hello,
I have a requirement to allow access to certain directories within the Exchange IIS server. For e.g users are only required to get to /owa , /oab or /ews etc and access to all other dire...
Brad_Parker_139
Nacreous
Oct 30, 2015I assume you have a separate HTTP and HTTP VS. Just have you HTTP vip doing a 301 redirect to https://[HTTP::host][HTTP::uri] then you can use an iRule like this on your HTTPS VS to restrict access to you defined allowed paths. All paths will be blocked that are not in the switch command.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/" {
HTTP::respond 301 noserver "https://[HTTP::host]/owa"
}
"/autodiscover" {
HTTP::respond 301 no server "https://[HTTP::host]/autodiscover/autodiscover.xml"
}
"/oab*" -
"/esw*" -
"/rpc*" -
"/cvwebrecall*" -
"/owa*" {
return
}
default {
reject
}
}
}
Karthik_Krishn1
Cirrostratus
Nov 02, 2015Hi Brad,
Thanks the rule. I tried it but when I do apply it , the page will not even display.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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