Apache+Centos6+Cloudflare配置SSL网站HTTPS加密

免配置服务器端使用半https服务

1.申请注册cloudflare https://dash.cloudflare.com/sign-up

2.添加一个站点example.com,将站点解析到新的dns上

3.在站点example.com的crypto页面设置ssl为flexible

4.在站点example.com的page rules页面Create a Page Rule for example.com

输入 http://www.example.com/* 然后add a setting选择Always Use Https即可Save and Deploy

5.将站点的源码中http全部改为https

你可能感兴趣的:(服务器,php,web,linux)