几年前曾经研究过将网站从http转到https,由于申请不到免费的SSL证书,收费的价格不菲,最后此事不了了之。近日受不了空间和数据库不在一台服务器导致访问缓慢问题,重新恢复到同服务器,又想起开启https访问,居然网上多个站能够申请免费SSL单域名证书,于是开始折腾成功改造。

以下是收集的免费SSL证书(https网站)申请渠道:

各厂商提供的免费SSL基本是Symantec(赛门铁克),申请一年,不支持通配符,有数量限制。

1、阿里云

2、腾讯云DV SSL 证书 

3、Let’s Encrypt 支持通配符

4、百度云

5、CloudFlare SSL 

IIs中实现Http自动转换到Https方法介绍 (403跳转对SEO有一定影响)

http自动跳转https的配置方法

1、下载安装URL重写模块:Microsoft URL Rewrite Module

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

2、SSL设置不要勾选(很重要)

3、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>

标签: none

添加新评论