{"id":14835,"date":"2015-04-18T14:46:42","date_gmt":"2015-04-18T05:46:42","guid":{"rendered":"http:\/\/oichinote.com\/plus\/?p=14835"},"modified":"2016-01-23T16:36:59","modified_gmt":"2016-01-23T07:36:59","slug":"adopt-to-https-almost","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2015\/04\/adopt-to-https-almost.html","title":{"rendered":"\u307b\u307c\u5b8c\u5168\u306bhttps\u5bfe\u5fdc[\u8ffd\u8a18\u3042\u308a]"},"content":{"rendered":"<p>https\u5bfe\u5fdc\u3092\u3055\u3089\u306b\u9032\u3081\u307e\u3057\u305f\u3002\u57fa\u672c\u7684\u306b\u306f\u6b21\u306e\u65bd\u7b56\u3067\u7d42\u4e86\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u66f4\u306b\u5fb9\u5e95\u3055\u305b\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/04\/i-have-got-ssl-certificate-from-startssl.html\" rel=\"_RAclick\">StartSSL\u306e\u8a3c\u660e\u66f8\u53d6\u5f97\u3068\u8a2d\u5b9a\u5b8c\u4e86[\u8ffd\u8a18\u3042\u308a] : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e744\u670822\u65e5)<\/em><\/li>\n<li><a href=\"https:\/\/oichinote.com\/plus\/2014\/08\/adopt-to-ssl-session.html\" rel=\"_RAclick\">https\u5bfe\u5fdc : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593<\/a> <em>(2014\u5e748\u67088\u65e5)<\/em><\/li>\n<\/ul>\n<p>https\u4ee5\u5916\u306e\u30a2\u30af\u30bb\u30b9(443\u30dd\u30fc\u30c8\u4ee5\u5916\u306e\u30a2\u30af\u30bb\u30b9)\u3092\u5168\u3066https\u30a2\u30af\u30bb\u30b9\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002.htaccess\u306e\u8a2d\u5b9a\u306f\u6b21\u306e\u69d8\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"hljs\"><code># Redirect to HTTPS\r\n&lt;IfModule mod_rewrite.c&gt;\r\n    RewriteEngine on\r\n    RewriteCond %{SERVER_PORT} !^443$\r\n    RewriteRule ^.*$ https:\/\/%{SERVER_NAME}%{REQUEST_URI} [R=301]\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<p>\u6b21\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u3066\u3044\u307e\u3059\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002Thank you!<\/p>\n<ul>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/mrgoofy33\/20100914\/1284414817\" target=\"_blank\">.htaccess\u3067HTTP\u30a2\u30af\u30bb\u30b9\u3092SSL\u3067\u30ea\u30c0\u30a4\u30ec\u30af\u30c8(\u9006\u3082\u30a2\u30ea) &#8211; hogehoge foobar Blog Style5<\/a><\/li>\n<li><a href=\"http:\/\/www.askapache.com\/htaccess\/apache-ssl-in-htaccess-examples.html\" target=\"_blank\">Apache SSL in htaccess examples<\/a><\/li>\n<li><a href=\"http:\/\/dminor11th.blogspot.jp\/2011\/02\/cgi-servername-httphost.html\" target=\"_blank\">Technical Memorandum: CGI\u306e\u74b0\u5883\u5909\u6570 SERVER_NAME \u3068 HTTP_HOST<\/a><\/li>\n<\/ul>\n<p>(\u8ffd\u8a18 2015-04-22 00:41 \u3053\u306e\u65b9\u6cd5\u3060\u3068Location\u30d8\u30c3\u30c0\u304c\u5165\u3089\u305a\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u308b\u306e\u3067\u3001\u3042\u307e\u308a\u826f\u304f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002)<br \/>\n(\u8ffd\u8a18 2016-01-23 16:34 \u3044\u307e\u306f\u3001\u3053\u306e\u65b9\u6cd5\u306b\u3088\u308b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u3002)<\/p>\n<p>WordPress\u5074\u3067\u306f\u3001\u6b21\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5165\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/wordpress-https\/\" target=\"_blank\">WordPress \u203a WordPress HTTPS (SSL) \u00ab WordPress Plugins<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/hsts\/\" target=\"_blank\">WordPress \u203a HSTS &#8211; HTTP Strict Transport Security enforcement plugin \u00ab WordPress Plugins<\/a><\/li>\n<\/ul>\n<p>HSTS\u306e\u65b9\u306f\u3001\u305d\u306e\u307e\u307e\u3060\u3068\u4e0a\u624b\u304f\u52d5\u304b\u306a\u304f\u3066\u3001\u5834\u5f53\u305f\u308a\u7684\u306b\u6b21\u306e\u69d8\u306b\u4fee\u6b63\u3057\u3066\u3044\u307e\u3059\u3002$maxage\u306e\u8a2d\u5b9a\u5024\u304c\u5c0f\u3055\u3059\u304e\u308b\u306e\u3067\u3059\u3002\u7ba1\u7406\u753b\u9762\u304b\u3089\u8a2d\u5b9a\u3067\u304d\u308b\u69d8\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3046\u307e\u304f\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<pre class=\"hljs\"><code class=\"php\">function hsts_header()\r\n{\r\n\t$options = get_option(&#039;hsts_settings_section&#039;);\r\n\t$maxage = 604800;\r\n\t$maxage = 15724800;\r\n\t$subdomains = &#039;&#039;;\r\n\/*\r\n\tif (is_numeric($options[&#039;hsts_maxage_setting&#039;]))\r\n\t\t$maxage = $options[&#039;hsts_maxage_setting&#039;];\r\n\tif ($options[&#039;hsts_subdomains_setting&#039;] == &#039;on&#039;)\r\n\t\t$subdomains = &#039;includeSubDomains&#039;;\r\n*\/\r\n\tif (isset($_SERVER[&#039;HTTPS&#039;]))\r\n\t\theader(&quot;Strict-Transport-Security: max-age=$maxage; $subdomains&quot;);\r\n\telse if ($options[&#039;hsts_redirect_setting&#039;]) {\r\n\t\theader(&#039;Location: https:\/\/&#039;.$_SERVER[&#039;HTTP_HOST&#039;].$_SERVER[&#039;REQUEST_URI&#039;], true, 301);\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>HSTS\u306e\u8a2d\u5b9a\u5024\u306f\u3001\u6b21\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u3066\u3044\u307e\u3059\u3002Thank you!<\/p>\n<ul>\n<li><a href=\"https:\/\/wiki.mozilla.org\/Security\/Server_Side_TLS\" target=\"_blank\">Security\/Server Side TLS &#8211; MozillaWiki<\/a><\/li>\n<\/ul>\n<p>\u3053\u3053\u307e\u3067\u8a2d\u5b9a\u3057\u3066\u3082\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30e9\u30f3\u30af\u304cB\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002openssl\u3067\u9375\u3092\u4f5c\u308b\u6642\u3001Cipher\u304b\u3089RC4\u3092\u5916\u3059\u306e\u3092\u5fd8\u308c\u3066\u307e\u3057\u305f&#8230;\u3002SmartCOM\u3060\u304b\u3089\u3001\u4f5c\u308a\u76f4\u3057\u306f\u3067\u304d\u306a\u3044\u3057&#8230;\u3002(\u3067\u304d\u308b\u3051\u3069\u6709\u6599)<\/p>\n<ul>\n<li><a href=\"https:\/\/www.ssllabs.com\/ssltest\/\" target=\"_blank\">Qualys SSL Labs \u2013 Projects \/ SSL Server Test<\/a><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/oichinote.com\/plus\/files\/2015\/04\/20150418quality-ssl-480x326.png\" alt=\"Qualys SSL Labs \u2013 Projects \/ SSL Server Test\" width=\"480\" height=\"326\" class=\"alignnone size-medium wp-image-14837\" srcset=\"https:\/\/oichinote.com\/plus\/files\/2015\/04\/20150418quality-ssl.png 480w, https:\/\/oichinote.com\/plus\/files\/2015\/04\/20150418quality-ssl-150x102.png 150w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u4e00\u5fdc\u3001.htaccess\u306e\u4e2d\u3067\u3001SSLCipherSuite\u3092\u8a2d\u5b9a\u3057\u3066\u3001RC4\u3067\u306f\u63a5\u7d9a\u3067\u304d\u306a\u3044\u69d8\u306b\u8a2d\u5b9a\u3057\u3066\u3042\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u4ed6\u3001Google\u30a6\u30a7\u30d6\u30de\u30b9\u30bf\u30fc\u30c4\u30fc\u30eb\u3068Bing Web\u30de\u30b9\u30bf\u30fc\u30c4\u30fc\u30eb\u306b\u3001https\u3067\u306eURL\u3092\u4f1d\u3048\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https\u5bfe\u5fdc\u3092\u3055\u3089\u306b\u9032\u3081\u307e\u3057\u305f\u3002\u57fa\u672c\u7684\u306b\u306f\u6b21\u306e\u65bd\u7b56\u3067\u7d42\u4e86\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u66f4\u306b\u5fb9\u5e95\u3055\u305b\u307e\u3057\u305f\u3002 StartSSL\u306e\u8a3c\u660e\u66f8\u53d6\u5f97\u3068\u8a2d\u5b9a\u5b8c\u4e86[\u8ffd\u8a18\u3042\u308a] : \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 (2014\u5e744\u670822\u65e5) https\u5bfe\u5fdc : \u30d7\u30e9\u30b9\u03b1\u7a7a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":14837,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300e\u307b\u307c\u5b8c\u5168\u306bhttps\u5bfe\u5fdc[\u8ffd\u8a18\u3042\u308a]\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[9,33,5],"tags":[],"class_list":["post-14835","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webblog-cocolog","category-wordpress","category-computer"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/oichinote.com\/plus\/files\/2015\/04\/20150418quality-ssl.png","jetpack-related-posts":[{"id":15108,"url":"https:\/\/oichinote.com\/plus\/2015\/05\/continuing-to-adopt-for-https.html","url_meta":{"origin":14835,"position":0},"title":"https\u5bfe\u5fdc\u304c\u7d9a\u3044\u3066\u3044\u307e\u3059","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2015\u5e745\u670824\u65e5","format":false,"excerpt":"https\u5bfe\u5fdc\u3092\u9032\u3081\u3066\u3044\u307e\u3059\u3002https\u3067\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3078\u63a5\u7d9a\u3059\u308b\u3068\u3001\u901a\u4fe1\u8def\u304c\u6697\u53f7\u5316\u3055\u308c\u3001\u901a\u4fe1\u5185\u5bb9\u3092\u7b2c\u2026","rel":"","context":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","block_context":{"text":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","link":"https:\/\/oichinote.com\/plus\/category\/webblog-cocolog"},"img":{"alt_text":"Qualys SSL","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2015\/05\/20150524qualys-ssl.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":14788,"url":"https:\/\/oichinote.com\/plus\/2015\/04\/install-self-signed-certificate-to-apache24-on-freebsd10.html","url_meta":{"origin":14835,"position":1},"title":"FreeBSD10\u306eApache2.4\u306b\u30aa\u30ec\u30aa\u30ec\u8a3c\u660e\u66f8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2015\u5e744\u670811\u65e5","format":false,"excerpt":"\u3046\u301c\u3093\u3001\u30b5\u30fc\u30d0\u306e\u66f4\u65b0\u4f5c\u696d\u3092\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u306a\u304b\u306a\u304b\u305f\u3069\u308a\u7740\u3051\u307e\u305b\u3093\u3002\u4eca\u306f\u3001\u5730\u76e4\u56fa\u3081\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u2026","rel":"","context":"FreeBSD","block_context":{"text":"FreeBSD","link":"https:\/\/oichinote.com\/plus\/category\/freebsd"},"img":{"alt_text":"https\u3067\u30a2\u30af\u30bb\u30b9","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2015\/04\/20150411https.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":14798,"url":"https:\/\/oichinote.com\/plus\/2015\/04\/redirect-to-503-by-htaccess.html","url_meta":{"origin":14835,"position":2},"title":".htaccess\u3092\u4f7f\u3063\u3066503\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2015\u5e744\u670812\u65e5","format":false,"excerpt":"\u30b5\u30fc\u30d0\u306e\u66f4\u65b0(\u79fb\u8ee2)\u4f5c\u696d\u3092\u3057\u3066\u3044\u307e\u3059\u3002 Web\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d0\u3092\u66f4\u65b0\u3059\u308b\u305f\u3081\u4e00\u6642\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u2026","rel":"","context":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","block_context":{"text":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","link":"https:\/\/oichinote.com\/plus\/category\/webblog-cocolog"},"img":{"alt_text":"503\u30e1\u30a4\u30f3\u30c6\u30ca\u30f3\u30b9\u753b\u9762","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2015\/04\/20150412maintenance.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16145,"url":"https:\/\/oichinote.com\/plus\/2015\/10\/could-not-access-from-google.html","url_meta":{"origin":14835,"position":3},"title":"https\u3067Google\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u305a\u306bGoogle\u304b\u3089\u6012\u3089\u308c\u305f","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2015\u5e7410\u670817\u65e5","format":false,"excerpt":"Google\u69d8\u304b\u3089\u3001\"[Webmaster Tools] https:\/\/oichinote.com\u2026","rel":"","context":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","block_context":{"text":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","link":"https:\/\/oichinote.com\/plus\/category\/webblog-cocolog"},"img":{"alt_text":"SSL LABS\u30b9\u30b3\u30a2","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2015\/10\/20151017ssllabs-score.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16104,"url":"https:\/\/oichinote.com\/plus\/2015\/10\/resolved-security-warning-on-serch.html","url_meta":{"origin":14835,"position":4},"title":"\u30d7\u30ed\u30b0\u306e\u691c\u7d22\u7a93\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8b66\u544a\u304c\u3067\u308b\u306e\u306fHTTPS\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u3060\u3063\u305f","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2015\u5e7410\u67089\u65e5","format":false,"excerpt":"\u5f53\u30d6\u30ed\u30b0\u306f\u3001WordPress\u3067\u4f5c\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u9ad8\u3081\u308b\u305f\u3081\u3001\u304a\u3088\u3073Google\u306e\u691c\u7d22\u30e9\u2026","rel":"","context":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","block_context":{"text":"Web-log\u30fb\u30b3\u30b3\u30ed\u30b0\u95a2\u9023","link":"https:\/\/oichinote.com\/plus\/category\/webblog-cocolog"},"img":{"alt_text":"WordPress HTTPS (SSL)","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2015\/10\/20151009wordpress-https.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":7127,"url":"https:\/\/oichinote.com\/plus\/2013\/02\/redirect-query-strings-by-rewriting-htaccess.html","url_meta":{"origin":14835,"position":5},"title":"WordPress\u3067&#8221;?page_id=12&#8243;\u3068\u306a\u3063\u3066\u3044\u308b\u30da\u30fc\u30b8\u3092&#8221;.htaccess&#8221;\u3067\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e742\u670811\u65e5","format":false,"excerpt":"\u672c\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u898b\u76f4\u3057\u3001\u300c\u306d\u3093\u30c9\u30eb\u5fdc\u63f4\u306e\u30fc\u3068\u300d\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002 \u306d\u3093\u30c9\u30eb\u5fdc\u63f4\u306e\u30fc\u3068\u3092\u8ffd\u52a0\u3057\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/oichinote.com\/plus\/category\/wordpress"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/14835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=14835"}],"version-history":[{"count":6,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/14835\/revisions"}],"predecessor-version":[{"id":16920,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/14835\/revisions\/16920"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media\/14837"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=14835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=14835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=14835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}