.NET Core 2 MVC app, how to host on IIS with HTTPS and HTTP Redirecting?

Can anyone guide me on hosting a .NET Core MVC application on IIS? With HTTPS and HTTP to HTTPS redirect.

Do I have to follow the steps here to enforce SSL? https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl and https://docs.microsoft.com/en-us/aspnet/core/fundamentals/url-rewriting?tabs=aspnetcore2x

Or is it sufficient to just do it at IIS under the binding and SSL settings?

How do I set it up? Thanks!

submitted by /u/imightbeasadist
[link] [comments]

Leave a Reply