Redirecting hits for autodiscover file on main www page with a NetScaler policy

Recently I had a customer request a policy that redirects the outlook autodiscover requests away from the normal webservers so that their logs are not flooded with errors, over to the domain

Follow is the commands for this using the CLI:

add responder action redirect "\"\"+HTTP.REQ.URL" -bypassSafetyCheck YES
add responder policy CUSTOMER-REDIRECT-POLICY-example.com_autodiscover "HTTP.REQ.URL.STARTSWITH(\"/autodiscover/\")"
bind lb vserver -policyName CUSTOMER-REDIRECT-POLICY-example.com_autodiscover -priority 100 -gotoPriorityExpression END -type REQUEST

comments powered by Disqus