R
R
Roman Rakzin2016-12-17 11:11:53
ASP.NET
Roman Rakzin, 2016-12-17 11:11:53

How to use https connection in Asp.net MVC?

How to use http is clear, but how to change everything to https in Asp.net MVC?
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
MrDywar Pichugin, 2016-12-17
@Dywar

Configuring an ASPNET project for development with SSL
How to enable SSL for a .NET project in Visual Studio
Implementing HTTPS Everywhere in ASP.Net MVC appli...
professorweb.ru SSL

A
akzhan, 2016-12-18
@akzhan

By the way, usually SSL is terminated on a proxy server, such as nginx (it is also available under Windows , if you suddenly need it).
In this case, the backend works just with http.
In the Linux world, this is the most commonly used solution.

D
Dmitry Filandor, 2016-12-22
@LifeAct

all links in the project are changed +

- <rewrite>
- <rules>
- <!--  BEGIN rule TAG FOR HTTPS REDIRECT 
  --> 
- <rule name="Force HTTPS" enabled="true">
  <match url="(.*)" ignoreCase="false" /> 
- <conditions>
  <add input="{HTTPS}" pattern="off" /> 
  </conditions>
  <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" /> 
  </rule>
- <!-- 
 END rule TAG FOR HTTPS REDIRECT 
    !!!!!!!!!! If there are already other <rule> tags in your web.config, then place the copied <rule> tag before the other <rule> tags.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question