为什么在web.config中将https转换为http不适用于IIS 7.5? [英] Why conversion of https to http not working for IIS 7.5 in web.config?
本文介绍了为什么在web.config中将https转换为http不适用于IIS 7.5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么在web.config中将https转换为http不适用于IIS 7.5?
Why conversion of https to http not working for IIS 7.5 in web.config?
<rule name="ForceNonHttps" stopProcessing="true">
<match url="(.*)" ignoreCase="true" negate="true" />
<conditions>
<add input="{SERVER_PORT}" pattern="^443$" />
</conditions>
<action type="Redirect" redirectType="Found" url="http://{HTTP_HOST}{REQUEST_URI}" />
</rule>
在HTTP_HOST下,我给出了192.168.30.1,对于模式,给出了相同的端口号,REQUEST_URL为R:1。
Under HTTP_HOST I gave 192.168.30.1 and for pattern gave port no of the same and REQUEST_URL as R:1.
推荐答案
/ >
< / conditions >
< action type = 重定向 redirectType = 找到 url = http:// {HTTP_HOST} {REQUEST_URI} / >
< / rule >
" /> </conditions> <action type="Redirect" redirectType="Found" url="http://{HTTP_HOST}{REQUEST_URI}" /> </rule>
在HTTP_HOST下我给出了192.168.30.1,模式给出的端口号为no,REQUEST_URL为R:1。
Under HTTP_HOST I gave 192.168.30.1 and for pattern gave port no of the same and REQUEST_URL as R:1.
这篇关于为什么在web.config中将https转换为http不适用于IIS 7.5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文