Forum Discussion
Rewrite Host in HTTP Request and Response
Hi
I have a requirement to proxy Exchange with an 'external' URL to an 'internal' URL. I need this to be transparent to the client as the 'internal' URL is not resolvable publicly. I have the following iRule which appears to replace the Host through to the backend server (the backend server is behind a BIG-IP and has an iRule to look for the 'internal' host or drop the request) but if I get a redirect (301 response on Activesync or HTTP redirect for /owa) then I get a redirect to the 'internal' URL for owa and I see the 'internal' URL in the 301 response. There is a requirement to ensure that there is no indication of the 'internal' URL for any public user:
when HTTP_REQUEST { HTTP::header replace Host "owa.mysite.com"
} when HTTP_RESPONSE { Check if response is a redirect
if {[HTTP::is_redirect]}{ HTTP::header replace Host "owa.yoursite.com" } }
1 Reply
- Kevin_Stewart
Employee
Given the complexity of Exchange, I think your best bet is an implementation of the ProxyPass iRule. You could probably start with ProxyPass lite.
https://devcentral.f5.com/wiki/iRules.Proxy-Pass-Lite.ashx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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