利用IIS重定向模块自动跳转至https

一、选中站点,打开URL重写模块,添加规则

二、参考下图编辑入站规则

  • (.*)
  • https://{HTTP_HOST}/{R:1}


参考页面:

https://learn.microsoft.com/en-us/archive/blogs/griffey/iis-url-rewrite-http-https-reverse-proxy

posted @ 2024-04-10 17:01  article  阅读(30)  评论(0编辑  收藏  举报