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

ananpeculiar 181 Reputation points

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.


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

AllowOAuthOverHttp - False
Alternate Access Mapping:-

http://sharepoint2019india Default http://sharepoint2019
http://sharepoint2019 Default http://sharepoint2019 Intranet
Redirect site in IIS:-

Redirect Requests to this destination - Checked$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.
579 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Itch Sun-MSFT 2,556 Reputation points

    Hi @ananpeculiar

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


    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,681 Reputation points

    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