alex100
Mar 16, 2016Cirrostratus
SharePoint HTTP 200 embedded script rewrite
Hi all,
I am running into the issues with SharePoint behind APM, where at one single instance site returns HTTP 200 with script embedded into the body which make client to request resource using SharePoint's internal host name. Client then attempts to request that resource and comes to stand still not being able to resolve the name. Here is the response in question:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/7.0
SPRequestGuid: c0f4406f-9fcd-4c1d-be09-8c4cdbd9fbad
X-SharePointHealthScore: 1
MicrosoftSharePointTeamServices: 14.0.0.7015
X-MS-InvokeApp: 1; RequireReadOnly
X-Frame-Options: SAMEORIGIN
Date: Wed, 16 Mar 2016 14:34:40 GMT
Vary: Accept-Encoding
Content-Length: 2413
Processing...
Processing...
User information updated successfully
You will be redirected shortly.
How can I catch and rewrite the internal hostname? When sent to the client it needs to look something like this: publicname.mycompany.com instead of mysite.mydomain.mycompany.root:14775 Can this be done using Stream profile triggered on HTTP Response?
Thanks in advance...