1.下载安装URL重写模块:Microsoft URL Rewrite Module
32位:
64位:
2.站点的SSL设置,不要勾选(很重要)
3.Web.config添加配置节点,以重定向到https
<system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> </system.webServer>以上config配置会自动生成配置到iis站点中,到此即完成了自动的跳转配置。
如对本文有疑问, 点击进行留言回复!!
Windows Server 2008 r2服务器无故自动重启故障的解决方法
Windows CVE-2019-0708 远程桌面代码执行漏洞复现问题
网友评论