小赖子的英国生活和资讯

CloudFlare 支持免费的 SSL

cloudflare 支持 SSL
阅读 桌面完整版

Cloudflare 是一款不错的CDN选择,最近CF已经支持上SSL了.默认都是开启的.

cloudflare 支持 SSL

好吧, 支持并不是那么完美,因为代码里的CSS还是 http 所以不能被浏览器加载,所以页面就成这德性了.但起码浏览器还能显示是灰的HTTPS.

设置 cloudflare 支持 SSL

有几种设置,反正最基本的就是你的主机不需要SSL的支持,你就可以免费有SSL.免费的总有一种不安心的感觉,所以我还是暂时把这功能给关了.

cloudflare 支持 SSL

关掉SSL功能之后, 如果你访问HTTPS,会自动转向到HTTP.(301转向)

HTTP/1.1 301 Moved Permanently
Server: cloudflare-nginx
Date: Sun, 19 Oct 2014 14:51:37 GMT
Content-Type: text/html
Content-Length: 189
Connection: keep-alive
Set-Cookie: __cfduid=da22dfa55b2fd9db707fcbb0b4e5de0951413730297783; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.justyy.com; HttpOnly
Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Location: https://justyy.com/
CF-RAY: 17bdcb79279e0a90-LHR
----URL Redirection to https://justyy.com/----
HTTP/1.1 200 OK
Date: Sun, 19 Oct 2014 14:51:38 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Set-Cookie: __cfduid=dee2f2d09a163abd0d9431c360efd43161413730297868; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.justyy.com; HttpOnly
X-Powered-By: PHP/5.5.9-1ubuntu4.4
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
X-CF-Powered-By: WP 1.3.14
X-Pingback: https://justyy.com/xmlrpc.php
Vary: Accept-Encoding
Server: cloudflare-nginx
CF-RAY: 17bdcb79a7e50a8a-LHR
Content-Encoding: gzip

强烈推荐

微信公众号: 小赖子的英国生活和资讯 JustYYUK

阅读 桌面完整版
Exit mobile version