ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

IIS下如何配置免费的https

2019-09-22 15:02:24  阅读:371  来源: 互联网

标签:www IIS 免费 wu0553 0922 https news com htmlhttp


1、首先我们要取走我们的证书,保存在我们本地的电脑里,然后复制到服务器即可。

有了SSL证书,如何在IIS环境下部署https?

2、取走后接下来干嘛?当然是打开文件看看里面有些什么啊。我们找到IIS那个压缩包并解压。

有了SSL证书,如何在IIS环境下部署https?

3、解析得到pfx文件,也就是我们需要部署域名的证书文件。

有了SSL证书,如何在IIS环境下部署https?

4、小伙伴们可以在服务器上进行这些解析,不过也可以像小编一样在本地进行,然后在服务器内创建个文件夹,把需要的东西复制进去即可。(不要用剪切,你知道的,就算你不知道你也会去百度的)

5、然后打开服务器的IIS控制面板。

有了SSL证书,如何在IIS环境下部署https?

6、然后打开IIS的主页找到服务器证书栏,双击打开即可。

有了SSL证书,如何在IIS环境下部署https?

7、双击打开后,选择导入,导入我们刚刚解压得到的pfx文件,这个pfx文件就是你需要部署域名的那个文件。

有了SSL证书,如何在IIS环境下部署https?

8、这个时候我们带https打开我们部署的网站,现在显示的还是红色的。

有了SSL证书,如何在IIS环境下部署https?

9、现在我们去找到我们需要部署的网站,在服务器网站栏里,双击绑定。

有了SSL证书,如何在IIS环境下部署https?


10、然后我们点添加,添加,添加选择https,443端口。

有了SSL证书,如何在IIS环境下部署https?

有了SSL证书,如何在IIS环境下部署https?

11、这个时候我们通过浏览器打开https的网站。

有了SSL证书,如何在IIS环境下部署https?

12、绿了有没有?绿了,绿了啊。。。绿了啊。。。爱上一匹野马,可我的家里没有草原,可是它却绿了一片。。。安全小锁标志啊有没有。。。等等,我们是不是忘了点什么东西?当我们再打开www.domain.com的时候,还是灰的啊。还是没有绿啊,这种很想被绿的感觉有没有?(突然好心疼宝宝)。

有了SSL证书,如何在IIS环境下部署https?

13、各位宝宝莫慌,抱紧我,接下来小编带大家如何默认访问的是https路径。要做到默认访问https,也许就要做跳转吧,不过HTTPS貌似有个高大上的名字叫做URL重写。我们需要在IIS上下载个重写组件。

IIS7.5下载地址:

中文32位:http://download.microsoft.com/download/4/9/C/49CD28DB-4AA6-4A51-9437-AA001221F606/rewrite_x86_zh-CN.msi

中文64位:http://download.microsoft.com/download/4/E/7/4E7ECE9A-DF55-4F90-A354-B497072BDE0A/rewrite_x64_zh-CN.msi

英文:http://www.iis.net/downloads/microsoft/url-rewrite

IIS 8安装URL重写参考文献 http://shiyousan.com/post/635646254870261696

下载好了之后会发现我们的IIS界面多了个URL重写的组件,开始都没有的,没错,我是刚刚下的。

有了SSL证书,如何在IIS环境下部署https?

利用URL重写唯一就是能够实现全站http跳转https。

所以,在部署之前,请检查网站根目录是否有web.config文件,如有,请先备份这里的web.config文件,因为以下的配置可能会和web.config里面跳转冲突,个人建议是直接删除处理,毕竟旧的不去新的不来,哈哈哈(建议先备份)。

14、然后继续下一步,双击打开,添加规则。

有了SSL证书,如何在IIS环境下部署https?

15、填写规则名称:Redirect to https,使用正规表达式,模式填写 (.*),然后接下来选择添加条件。第一个填{HTTPS} 与模式匹配 ^OFF$ ,第二个填{HTTPS_HOST} 与模式不匹配 ^(localhost) 。

有了SSL证书,如何在IIS环境下部署https?

16、操作类型选择重定向,然后选择属性为https://{HTTP_HOST}/{R:1} 重定向类型选择303。

有了SSL证书,如何在IIS环境下部署https?

17、最后一步,检查下点保存即可。

有了SSL证书,如何在IIS环境下部署https?

18、现在我们可以去看看我们的网站,直接输入www.domain.com。

有了SSL证书,如何在IIS环境下部署https?

以上是教程是在IIS7 环境下实现的,很简单,很快。

 

一个IIS下绑定多个HTTPS

1. 找到C:\Windows\system32\inetsrv\config\applicationHost.config 

2. <binding protocol="https" bindingInformation="*:443" />

修改成:

      <binding protocol="https" bindingInformation="*:443:www.baidu.om" />

http://market.szonline.net/amaz/11510.html
http://market.szonline.net/amaz/11509.html
http://market.szonline.net/amaz/11508.html
http://market.szonline.net/amaz/11506.html
http://market.szonline.net/amaz/11505.html
http://market.szonline.net/amaz/11504.html
http://market.szonline.net/amaz/11503.html
http://market.szonline.net/amaz/11501.html
http://market.szonline.net/amaz/11500.html
http://market.szonline.net/amaz/11499.html
http://market.szonline.net/amaz/11497.html
http://market.szonline.net/amaz/11496.html
http://market.szonline.net/amaz/11495.html
http://market.szonline.net/amaz/11493.html
http://www.jimumall.cn
http://market.szonline.net/amaz/11492.html
http://market.szonline.net/amaz/11491.html
http://market.szonline.net/amaz/11490.html
http://market.szonline.net/amaz/11489.html
http://market.szonline.net/amaz/11488.html
http://market.szonline.net/amaz/11486.html
http://market.szonline.net/amaz/11485.html
http://market.szonline.net/amaz/11484.html
http://market.szonline.net/amaz/11482.html
http://www.wu0553.com/news/27423.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27422.html
http://www.wu0553.com/news/27421.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27420.html
http://www.wu0553.com/news/27419.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27418.html
http://www.wu0553.com/news/27417.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27416.html
http://www.wu0553.com/news/27415.html
http://www.wu0553.com/news/27406.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27405.html
http://www.wu0553.com/news/27403.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27402.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27399.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27395.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27389.html
http://www.wu0553.com/news/27388.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27387.html
http://www.wu0553.com/news/27386.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27385.html
http://www.wu0553.com/news/27384.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27383.html
http://www.wu0553.com/news/27382.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27381.html
http://www.wu0553.com/news/27380.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27379.html
http://www.wu0553.com/news/27378.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27377.html
http://www.wu0553.com/news/27376.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27375.html
http://www.wu0553.com/news/27374.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27373.html
http://www.wu0553.com/news/27372.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27371.html
http://www.wu0553.com/news/27370.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27369.html
http://www.wu0553.com/news/27368.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27367.html
http://www.wu0553.com/news/27366.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27365.html
http://www.wu0553.com/news/27364.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27363.html
http://www.wu0553.com/news/27362.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27361.html
http://www.wu0553.com/news/27360.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27359.html
http://www.wu0553.com/news/27358.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27357.html
http://www.wu0553.com/news/27356.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27355.html
http://www.wu0553.com/news/27354.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27353.html
http://www.wu0553.com/news/27352.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27351.html
http://www.wu0553.com/news/27350.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27349.html
http://www.wu0553.com/news/27347.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27343.html
http://www.wu0553.com/news/27339.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27333.html
http://www.wu0553.com/news/27326.html
http://www.wu0553.com/news/zixun/wenda/2019/0922/27319.html
http://www.wu0553.com/news/27313.html

标签:www,IIS,免费,wu0553,0922,https,news,com,htmlhttp
来源: https://www.cnblogs.com/zjw2004112/p/11567516.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有