zoukankan      html  css  js  c++  java
  • 一个服务器要绑定多个HTTPS站点

    默认情况一个服务器的IIS只能绑定一个HTTPS也就是443端口

    要实现多个站点对应HTTPS只能更改IIS配置

    地址:C:Windowssystem32inetsrvconfigapplicationHost.config、

    默认一个站点带一个这样的配置

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

    修改成:

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

    切记需要对应的每个站点都修改。

     

    appcmd set site /site.name:"wb_KamDai.PortalSystem.W
    eb" /+bindings.[protocol='https',bindingInformation='*:443:www.wb.com']

     
     
    IIS重定向组件 
     
    注意首先要安装url重定向模块
    然后在web.config末尾添加如下代码
     <system.webServer>
      <rewrite>
       <rules>
        <rule name="HTTP to HTTPS redirect" stopProcessing="true">
         <match url="(.*)" />
         <conditions>
          <add input="{HTTPS}" pattern="off" ignoreCase="true" />
         </conditions>
         <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
        </rule>
       </rules>
      </rewrite>
        </system.webServer>
     
     
     
     
  • 相关阅读:
    微信公众号支付JSAPI,提示:2支付缺少参数:appId
    Application对象
    Apache安装和文件配置
    Apache编译教程
    MS4W安装教程
    MapServer教程2
    Tomcat修改源码,重新编译
    MapServer教程
    QGIS SDK下载
    OpenStreetMap全球库
  • 原文地址:https://www.cnblogs.com/tonykan/p/5802303.html
Copyright © 2011-2022 走看看