{"id":9569,"date":"2017-06-19T21:25:45","date_gmt":"2017-06-19T12:25:45","guid":{"rendered":"http:\/\/www.itblog.jp\/?p=9569"},"modified":"2017-06-19T21:27:25","modified_gmt":"2017-06-19T12:27:25","slug":"wordpress%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%88%e5%85%a8%e4%bd%93ssl%e6%89%8b%e9%a0%86cloudflare%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9569","title":{"rendered":"WordPress\u30b5\u30a4\u30c8\u306e\u30b5\u30a4\u30c8\u5168\u4f53SSL\u624b\u9806(Cloudflare\u4f7f\u7528)"},"content":{"rendered":"<p>\u3068\u3042\u308bWordPress\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3092\u3001\u4e16\u306e\u4e2d\u306e\u6d41\u308c\u3067\u30b5\u30a4\u30c8\u5168\u4f53\u3092SSL\u5316\u3057\u3066\u3001\u4f55\u7b87\u6240\u304b\u82e6\u52b4\u3057\u305f\u7b87\u6240\u304c\u3042\u308b\u306e\u3067\u624b\u9806\u3092\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2>\uff11\uff0eCloudlare\u3067\u5bfe\u8c61\u30b5\u30a4\u30c8\u3092SSL\u5316<\/h2>\n<p>\u307e\u305a\u3001SSL\u8a3c\u660e\u66f8\u3092Cloudflare\u7d4c\u7531\u3067\u7121\u6599\u3067\u5165\u624b\u3057\u3001\u9069\u7528\u3055\u308c\u308b\u306e\u3092\u5f85\u3061\u307e\u3059\u3002<\/p>\n<p>\u624b\u9806\u306f\u7c21\u5358\u3067\u3001\u307e\u305a\u306fCloud\uff46lare\u3092\u5c0e\u5165\u3057\u3066\u3001\u5bfe\u8c61\u306e\u30b5\u30a4\u30c8\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002<\/p>\n<p>\u5bfe\u8c61\u30b5\u30a4\u30c8\u306eDNS\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u4e0a\u30e1\u30cb\u30e5\u30fc\u306e\u300cCrypt\u300d\u3092\u9078\u629e\u3057\u3001SSL\u306e\u30e1\u30cb\u30e5\u30fc\u306e\u9078\u629e\u30e1\u30cb\u30e5\u30fc\u3067\u300cFlexible\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n\u6642\u9593\u304c\u7d4c\u3064\u3068\u300cStatus:Active Certificate\u300d\u3068\u306a\u308a\u3001\u30b5\u30a4\u30c8\u306bhttps\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u624b\u9806\u3067\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308bSSL\u306f\u901a\u5e38\u306eSSL\u8a3c\u660e\u66f8\u3068\u306f\u7570\u306a\u308b\u306e\u3067\u3001\u4e00\u90e8\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u6319\u52d5\u306b\u554f\u984c\u304c\u8d77\u3053\u308b\u5834\u5408\u3082\u3042\u308b\u306e\u3067\u3001\u4f01\u696d\u30b5\u30a4\u30c8\u306a\u3069\u304d\u3061\u3093\u3068\u3057\u305f\u30b5\u30a4\u30c8\u3067\u306e\u4f7f\u7528\u306f\u63a8\u5968\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u500b\u4eba\u30b5\u30a4\u30c8\u30ec\u30d9\u30eb\u3067\u3042\u308c\u3070\u307b\u307c\u554f\u984c\u7121\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\uff08\u4e00\u822c\u306b\u4f7f\u7528\u3055\u308c\u308b\u3088\u3046\u306a\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u554f\u984c\u306a\u304f\u8868\u793a\u3055\u308c\u307e\u3059\uff09<\/p>\n<h2>2.Wordpress\u30b5\u30a4\u30c8\u3092SSL\u5316\u3059\u308b<\/h2>\n<p>\u307e\u305a\u3001\u79c1\u306e\u5834\u5408\u306fWordPress\u306e\u30b5\u30a4\u30c8\u3092SSL\u5316\u3059\u308b\u306e\u306b\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u300cReally Simple SSL\u300d\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<br \/>\n\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u5f8c\u3001WordPress\u7ba1\u7406\u753b\u9762\u306bhttps\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u5316\u3057\u3066\u8a2d\u5b9a\u3092\u9069\u7528\u3055\u305b\u308b\u3053\u3068\u3067\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a\u3092http\u2192https\u306b\u7f6e\u63db\u3059\u308b\u306e\u3067\u3001\u9069\u7528\u524d\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u826f\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u7ba1\u7406\u753b\u9762\u304b\u3089\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u304b\u3089\u518d\u5ea6\u7ba1\u7406\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30eb\u30fc\u30d7\u304c\u767a\u751f\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\n\u3053\u306e\u554f\u984c\u306f\u3001wp-config.php\u306b\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u8ffd\u8a18\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true \" >define('FORCE_SSL_ADMIN', true);\r\n\r\nif ( ! empty( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) &amp;&amp; $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' ) {\r\n\t$_SERVER['HTTPS']='on';\r\n}<\/pre>\n<p>\u6b21\u306b\u3001\u3082\u3068\u3082\u3068\u306e\u30b5\u30a4\u30c8\u304chttp\u3067\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u306b\u8a8d\u8b58\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092http\u304b\u3089https\u306b\u304b\u3051\u307e\u3057\u305f\u3002<br \/>\n.htaccess\u306b\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u8ffd\u8a18\u3057\u307e\u3057\u305f\u3002<br \/>\n\u6700\u521d\u306f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30eb\u30fc\u30d7\u3057\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3059\u304c\u3001WordPress\u306b\u306f\u6700\u521d\u304b\u3089.htaccess\u306b\u8a18\u8ff0\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u8a18\u8ff0\u306e<br \/>\n\u4e0a\u306b\u66f8\u3044\u3066\u304a\u304f\u3068\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true \" >&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteCond %{HTTP:X-Forwarded-Proto} !=https\r\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [R=301,L]\r\n&lt;\/IfModule&gt;\r\n\r\n&lt;IfModule mod_rewrite.c&gt;\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php [L]\r\n&lt;\/IfModule&gt;<\/pre>\n<p>WordPress\u306e\u7ba1\u7406\u753b\u9762\u3068\u30b5\u30a4\u30c8\u3067\u305d\u308c\u305e\u308c\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30eb\u30fc\u30d7\u304c\u767a\u751f\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u4e0a\u8a18\u306e\u65b9\u6cd5\u3067\u305d\u308c\u305e\u308c\u5bfe\u51e6\u3067\u304d\u3066\u554f\u984c\u306a\u304fhttps\u3067\u306e\u52d5\u4f5c\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>\uff13\uff0eGoogle Analytics\u306e\u8a2d\u5b9a\u5909\u66f4<\/h2>\n<p>Google Analytics\u306e\u30b5\u30a4\u30c8URL\u3082http\u2192https\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\u30d7\u30ed\u30d1\u30c6\u30a3\u8a2d\u5b9a\u3001\u30d3\u30e5\u30fc\u8a2d\u5b9a\u306ehttp\u3092https\u306b\u305d\u308c\u305e\u308c\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<h2>\uff14\uff0e\u30a6\u30a7\u30d6\u30de\u30b9\u30bf\u30fc\u30c4\u30fc\u30eb\u306e\u518d\u767b\u9332<\/h2>\n<p>\u30a6\u30a7\u30d6\u30de\u30b9\u30bf\u30fc\u30c4\u30fc\u30eb\u306bhttp\u306e\u30b5\u30a4\u30c8\u3092\u767b\u9332\u3057\u3066\u3044\u305f\u5834\u5408\u3001https\u306e\u30b5\u30a4\u30c8\u306f\u5225\u30b5\u30a4\u30c8\u3068\u3057\u3066\u767b\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\nhttps\u304b\u3089\u306f\u3058\u307e\u308bURL\u3067\u767b\u9332\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\uff12\u306e\u624b\u9806\u3067http\u2192https\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u304b\u3051\u3066\u3044\u308b\u306e\u3067\u3001\u30b5\u30a4\u30c8\u306e\u8a55\u4fa1\u306f\u305d\u306e\u307e\u307e\u5f15\u304d\u7d99\u304c\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3068\u3042\u308bWordPress\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3092\u3001\u4e16\u306e\u4e2d\u306e\u6d41\u308c\u3067\u30b5\u30a4\u30c8\u5168\u4f53\u3092SSL\u5316\u3057\u3066\u3001\u4f55\u7b87\u6240\u304b\u82e6\u52b4\u3057\u305f\u7b87\u6240\u304c\u3042\u308b\u306e\u3067\u624b\u9806\u3092\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \uff11\uff0eCloudlare\u3067\u5bfe\u8c61\u30b5\u30a4\u30c8\u3092SSL\u5316 \u307e\u305a\u3001SSL\u8a3c\u660e\u66f8\u3092Cloudf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[114],"tags":[],"class_list":["post-9569","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9569"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9569\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}