Question

I have a SharePoint 2013 farm (2 WFE, 1 APP, 2 DB) that was accessible on the internal network via http://sharepoint. I have since setup SSL in IIS and in Central Administration changed all the Alternate Access Mapping URLs and Web Application URLs that I could find to https://sharepoint.example.com. This is all working.

My problem is that I get entries in the Application log that

Alternate access mappings have not been configured. Users or services are accessing the site https://sharepoint.example.com with the URL http://sharepoint. This may cause incorrect links to be stored or returned to users. If this is expected, add the URL http://sharepoint as an AAM response URL. For more information, see: http://go.microsoft.com/fwlink?LinkId=114854

Where can I look to remove the old non-https link?

Edit 1:

Alternate Access Mappings AAM settings are...

Internal URL                             Zone      Public URL for Zone
https://sharepoint.example.com           Default   https://sharepoint.example.com
https://app.sharepoint.example.com       Default   https://sharepoint.example.com
https://app.sharepoint.example.com:8080  Default   https://app.sharepoint.example.com:8080
https://app.sharepoint.example.com:8081  Default   https://app.sharepoint.example.com:8081
https://app.sharepoint.example.com:8082  Default   https://app.sharepoint.example.com:8082

:8080 is MySites
:8081 is Central Administration
:8082 is MetaLogix ControlPoint
Était-ce utile?

La solution

I have seen this behavior several times and never found the spot where SharePoint "remembers" the old URL.

But there's a nice workaround:

  • You should now have configured your new FQDN URL https://sharepoint.example.com in the AAM-Zone Default
  • Add the old URL http://sharepoint to a new AAM in any free zone (like Intranet)
  • Also add an IIS-Binding for your old URL
  • SharePoint should now work fine. You might see some references to the old URL in your ULS-Logs.
  • Wait some weeks or even months. SharePoint now should have completely forgotten the old URL. It's safe now to remove the old URL in AAM and IIS-Bindings

Bonus:

Autres conseils

If you changed your "Default" Zone Alternate Access Mapping to:

httpS://SharePoint.Example.com

From

http://SharePoint 

This maybe causing the issue. I would change the "Default" Zone back to:

http://SharePoint

Then I would add as a "Custom" Zone or other free zone(s) i.e. as an "Internet" Zone

httpS://SharePoint.Example.com 
httpS://SharePoint

Make sure to check in IIS that the host header bindings are set for:

httpS://SharePoint.Example.com
httpS://SharePoint
    Typically on port 443

Here is a PS Script to Add AAM's:

New-SPAlternateURL –WebApplication "http://SharePoint" -URL "httpS://SharePoint.Example.com" –Zone Custom

Here is a basic article on AAM's in SharePoint 2013 (Alternate Access Mappings): http://www.sharepointdiary.com/2016/07/add-alternate-access-mapping-in-sharepoint-using-powershell.html

https://docs.microsoft.com/en-us/SharePoint/administration/configure-alternate-access-mappings

Hope this helps!

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top