Forum Discussion
Exchange HTTP redirect method for multitenancy irule
- Nov 14, 2013
I can't see anything wrong with the logic - here's a idea to move you forward with the Rule though and including some logging;-
when HTTP_REQUEST { if { [class match [string tolower [HTTP::host]] equals dg_autoDiscover_tenants] && [HTTP::uri] equals "/autodiscover/autodiscover.xml"} { log local0. "Redirecting [HTTP::host][HTTP::uri] to [class match -value [string tolower [HTTP::host]] equals dg_autoDiscover_tenants]" HTTP::respond 302 Location [class match -value [string tolower [HTTP::host]] equals dg_autoDiscover_tenants] return } }
So your datagroup dg_autoDiscover_tenants would have Hosts as keys, and URIs ie https://autodiscover.environment2.com/autodiscover/autodiscover.xml as values. Check for logging output in /var/log/ltm.
That's exactly what I was looking for.
However, I need something more complex...
Same rule for the multitenancy but I also need to granulary look at the user calling that autodiscover URI...
It is for exchange a migration purpose. If one user of an organization is migrated to a new server but not the second one, I only need the autodiscover to be redirected for the first user.
So I would use a new data group which one would have the list of emails to be redirect.
Is it possible ?
Thanks
Recent Discussions
Related Content
* 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