加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows – IIS 7 – 允许http部分网站,https休息?

发布时间:2020-12-13 23:51:05 所属栏目:Windows 来源:网络整理
导读:在IIS 7中,有没有办法在同一站点上设置两个URL以允许http和https,其余的只能是https? - http://mysite/url1 or https://mysite/url1 is accepted and stays on that protocol. - http://mysite/url2 or https://mysite/url2 is accepted and stays on that
在IIS 7中,有没有办法在同一站点上设置两个URL以允许http和https,其余的只能是https?
- http://mysite/url1 or https://mysite/url1 is accepted and stays on that protocol.
 - http://mysite/url2 or https://mysite/url2 is accepted and stays on that protocol.
 - any other item,i.e. http://mysite/whatever redirects to https://mysite/whatever
 - https://mysite/whatever is accepted.

编辑,因为第一个问题不够明确.

最友好的方法是使用IIS URL Rewrite,因为如果它们通过HTTP到达它不会引发错误,但它会为它们重定向到HTTPS.您可以将规则设置为重定向到所有页面的https,除了您需要的2(以及任何仍可以保留HTTP的图像,css或其他依赖项).

这是一个入门链接:http://tinyurl.com/4lj4v5g.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读