在用于HTTPS的IIS.Add端口443中部署的web应用程序。并为HTTPS创建新的SSL证书。
最后,登录我的应用程序(它完成了)我刷新了在IIS443(Https)端口自动删除.Once和应用程序无法到达
发布于 2019-01-25 16:23:41
您似乎没有将url重写设置为从http重定向到https。
我建议您可以安装url rewrite module并在web.config中添加以下url重写,以将所有请求从http重定向到https:
<rewrite>
<rules>
<rule name="Redirect to http" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" negate="false" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Found" />
</rule>
</rules>
</rewrite>详细信息,请参阅下面的文章:https://blogs.technet.microsoft.com/dawiese/2016/06/07/redirect-from-http-to-https-using-the-iis-url-rewrite-module/
https://stackoverflow.com/questions/54344848
复制相似问题