For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Deano_21389's avatar
Deano_21389
Historic F5 Account
Apr 26, 2014

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" } }