https证书随记

下载证书之后:

1:域名跳转操作

<system.webServer>
         <rewrite>
             <rules>
                 <rule name="Redirect to https" stopProcessing="true">
                     <match url="(.*)" />
                     <conditions>
                         <add input="{HTTPS}" pattern="^OFF$" />
                         <add input="{HTTPS_HOST}" pattern="^(localhost)" negate="true" />
                     </conditions>
                     <action type="Redirect" url="https://{HTTP_HOST}:449/{R:1}" redirectType="SeeOther" />
                 </rule>
             </rules>
         </rewrite>
     </system.webServer>

posted @ 2017-11-15 18:13  枫-  阅读(127)  评论(0编辑  收藏  举报