码迷,mamicode.com
首页 > 其他好文 > 详细

IIS使用Tip

时间:2016-10-09 09:09:18      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

1. IIS7 HTTPS 绑定主机头 

IIS7下面默认HTTPS绑定是无法指定主机头的,但我们可以通过手工修改IIS配置来实现主机头绑定。

 

打开C:\Windows\system32\inetsrv\config\applicationHost.config

定位到如下位置:

                <bindings>
                    <binding protocol="https" bindingInformation="*:443" />
                    <binding protocol="net.tcp" bindingInformation="808:*" />
                    <binding protocol="net.pipe" bindingInformation="*" />
                    <binding protocol="net.msmq" bindingInformation="localhost" />
                    <binding protocol="msmq.formatname" bindingInformation="localhost" />
                    <binding protocol="http" bindingInformation="*:80:www.console.com" />
                </bindings>

找到https的配置项目,修改为:

<binding protocol="https" bindingInformation="*:443:www.console.com" />

注意这里的www.console.com要换成你自己的域名,之后保存即可。

IIS使用Tip

标签:

原文地址:http://www.cnblogs.com/ldybyz/p/5940839.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!