2014-07-12 14:21:40

View Mode: Normal | Article List
April, 2017 | 1
1.首先需要购买SSL证书,可以到这里购买 https://chinaspace.taobao.com/

2.安装SSL后启用HSTS (如需协助可以加腾讯q:8766167)

1).Apache 下启用HSTS,配置参考:

配置文件里打开这行
Quote
LoadModule headers_module modules/mod_headers.so
虚拟主机443配置里增加一行:
Quote
<VirtualHost www.test.com:443>

//下面增加这行:
Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"

</VirtualHost>
------------------------------
2).Nginx 下启用HSTS,配置参考:

server配置里增加这行:
...

Read More...
1