Forum Discussion

Darrin_Wiens_25's avatar
Darrin_Wiens_25
Icon for Nimbostratus rankNimbostratus
Aug 20, 2008

Redirect and Host change on HTTP::Response

I have an odd issue I need to see if I can resolve in an iRule. We have a Sharepoint server that sits behind the F5. When users go to the VIP or the URL associated with the VIP they connect fine but the server rewrites the URL. For example if the user goes to...

https://sharepoint.blah.com

the server will respond and change the URL to...

http://servername:1010

We would like to to find a way to change the host in the HTTP::RESPONSE and the protocol from HTTP back to HTTPS so that the client continues to see https://sharepoint.blah.com in their browser. Here is what I have so far for the host change part...

 
 when HTTP_RESPONSE { 
  if { ([HTTP::host] equals "servername") } { 
  HTTP::header replace Host "sharepoint.blah.com" 
  } 
  } 
 

I have a feeling even this is not correct. Any help is greatly appreciated.

Thanks,

Darrin

2 Replies

  • I am not sure about this but did you check the HTTP Profile and basically enable redirect rewrite and set it to All or matching?

     

     

    Also, If you haven't done this already check out the Deployment Guides related to sharepoint

     

    http://www.f5.com/solutions/resources/deployment-guides/

     

     

    I hope this helps

     

    CB

     

     

     

  • Well I'm getting a little further. I met with the web team and they have even more issues than I originally was made aware of.

     

     

    Apparently they're site has a lot of redirect links. They are hoping I can intercept the redirect before it gets to the client and change it from going to http://servername:1010/... to now go to https://sharepoint.blah.com/...

     

     

    The rewites under profiles appears to work on the initial entry to the site and only if I set it to Matching. Setting it to All broke everything. =)