为什么http到https协议的以下视频在IIS 7.5中无法正常工作? [英] Why the following videos for http to https protocal change not working in IIS 7.5?

查看:181
本文介绍了为什么http到https协议的以下视频在IIS 7.5中无法正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么htttp到https转换的以下视频无法在IIS 7.5中运行?我们有一个内部网址https://192.168.3.1/和一个extrnal域名提供为x。因此,当启用SSL证书时,
https://www.x.com正常工作。但如果用户键入http,则不会使用https,反之亦然。绑定时我们已经设置了本地站点和外部主机名,没有ip地址。我们的做法与视频完全相同。它是在IIS 7.5中完成的绑定吗?



Why the following videos for htttp to https conversion not working in IIS 7.5? We are having an internal url https://192.168.3.1/ and an extrnal domain provided as x. Thus
https://www.x.com works as SSL certificate is enabled. But if the user types http it isn't going to https and vice versa. While binding we have set local site and external with host name and no ip address. We did exactly the same way as the video. Is it a binding done in IIS 7.5?

Links are as follows:
http://www.youtube.com/watch?v=U7USHit5mhY

推荐答案

看起来你做错了什么。我在IIS 7,7.5上这样做,对我有用。这是来自web.config的XML代码。



Well it looks like you're doing something wrong. I have doing this on IIS 7, 7.5 and is works for me. here is the XML code from the web.config.

<rewrite>
 <rules>
 <rule name="http to https" stopprocessing="true">
 <match url="(.*)" />
 <conditions>
 <add input="{HTTPS}" pattern="^OFF


/ >
< / conditions >
< action type = 重定​​向 url = https:// {HTTP_HOST} / {R:1} redirecttype = 参见 / >
< / rule >
< / rules >
< / rewrite >
" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirecttype="SeeOther" /> </rule> </rules> </rewrite>



M atch你的web.config重写代码,或者你可以用你的重写代码替换这段代码。让我知道如果有任何问题,请再见:)


Match your web.config rewrite code from this one or you can replace this code with your rewrite code. let me know if there's any problem see ya bye :)


这篇关于为什么http到https协议的以下视频在IIS 7.5中无法正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆