主要是设置IIS:

step1:打开Internet 信息服务(IIS)管理器——选择网站,编辑绑定

关于设置服务器为https服务器
 

step2:添加https,如下图,这样如果不设置SSL的话就两种都可以进去网站

关于设置服务器为https服务器

 

如果想要设置成只能https:

关于设置服务器为https服务器——>>关于设置服务器为https服务器

开启SSL之后,就只能用https访问。

没有使用https的浏览器提示:

关于设置服务器为https服务器

 
P.S.写的比较简单,有空的话再扩展扩展

相关文章:

  • 2021-11-08
  • 2021-04-24
  • 2021-05-30
  • 2022-01-15
  • 2021-08-15
  • 2021-11-08
  • 2021-09-26
猜你喜欢
  • 2021-12-09
  • 2022-01-22
  • 2021-06-28
  • 2021-12-25
  • 2021-12-12
  • 2021-06-06
相关资源
相似解决方案