How to force the http traffic to Https in SharePoint 2019?

ananpeculiar 181 Reputation points
2020-11-27T15:26:51.08+00:00

Office Online Documents not Opening when Redirect http to https Site enabled on SharePoint2019 IIS

I have SharePoint 2019 installed on Port 80 and enabled the Https on IIS, also i have created a site for Http to https redirect to pass all the traffic to only on https, but this is blocking my sharepoint documents opening using office online server, it throws error.

43200-erroronredrect.jpg

But if i stop the RedirectSharepoint site then the documents are opening fine in the browser.
SharePoint2019 Configuration:-

External-https
AllowOAuthOverHttp - False
Alternate Access Mapping:-

http://sharepoint2019india Default http://sharepoint2019
http://sharepoint2019 Default http://sharepoint2019
https://sharepoint2019.Domain.com Intranet https://sharepoint2019.Domain.com
Redirect site in IIS:-

Redirect Requests to this destination - Checked https://sharepoint2019.Domain.com$S$Q

Office Online Server Configuration:-

AllowHTTP : True
AllowOutboundHttp : False
SSLOffloaded : False

Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
647 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Itch Sun-MSFT 2,556 Reputation points
    2020-11-30T07:49:17.227+00:00

    Hi @ananpeculiar

    Because SP uses HTTPS, but your OOS configuration is http. I suggest you convert OOS to HTTPS as well.

    43530-image.png

    https://learn.microsoft.com/en-us/officeonlineserver/configure-office-online-server-for-sharepoint-server-2016/configure-office-online-server-for-sharepoint-server-2016

    https://learn.microsoft.com/en-us/officeonlineserver/deploy-office-online-server


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Trevor Seward 11,706 Reputation points
    2020-12-05T00:22:15.51+00:00

    Note that the friendly name of the certificate cannot have an asterisk in it (but the cert can be a wildcard, i.e. the CN can have an asterisk).

    I would generally suggest you remove any HTTP binding and have a load balancer or other network device in front of SharePoint perform the HTTP -> HTTPS translation for clients.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.