{"id":12759,"date":"2018-03-06T14:46:50","date_gmt":"2018-03-06T05:46:50","guid":{"rendered":"https:\/\/a-tak.com\/blog\/?p=12759"},"modified":"2018-03-06T14:56:39","modified_gmt":"2018-03-06T05:56:39","slug":"to-ssl","status":"publish","type":"post","link":"https:\/\/a-tak.com\/blog\/2018\/03\/to-ssl\/","title":{"rendered":"\u30b5\u30a4\u30c8\u3092SSL\u5316\u3057\u307e\u3057\u305f"},"content":{"rendered":"<div id=\"advads-2782932144\" class=\"advads-before-content-placement advads-entity-placement\" style=\"margin-left: auto;margin-right: auto;text-align: center;\"><div class=\"advads-adlabel\">\u5e83\u544a<\/div><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7585646298782746\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:300px;height:250px;\" \ndata-ad-client=\"ca-pub-7585646298782746\" \ndata-ad-slot=\"6112122906\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><p><img decoding=\"async\" class=\"thumbnail\" src=\"https:\/\/a-tak.com\/blog\/wp-content\/uploads\/2013\/11\/logo.svg\" style=\"width:350px;height:200px\" alt=\"\" scale=\"0\"><\/p>\n<p>\u3000WordPress\u306e\u30d6\u30ed\u30b0\u3092SSL\u5316\u3057\u307e\u3057\u305f<\/p>\n<p><!--more--><\/p>\n<h2 id=\"ssl\u5316\u304c\u5f53\u7136\u306b\u306a\u308a\u3064\u3064\u3042\u308b\">SSL\u5316\u304c\u5f53\u7136\u306b\u306a\u308a\u3064\u3064\u3042\u308b<\/h2>\n<p>\u3000SSL\u5316\u3057\u3066\u3044\u306a\u3044\u30b5\u30a4\u30c8\u306fGoogle\u3067\u306e\u9806\u4f4d\u304c\u843d\u3061\u305f\u308a\u3001\u4eca\u5ea6\u306eChrome\u3067\u306f\u300c\u5371\u306a\u3044\u30b5\u30a4\u30c8\u300d\u3068\u3057\u3066\u8b66\u544a\u8868\u793a\u3055\u308c\u305f\u308a\u3059\u308b\u3089\u3057\u304f\u3001\u3082\u306f\u3084\u30b5\u30a4\u30c8\u306eSSL\u5316\u306f\u5fc5\u9808\u4e8b\u9805\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3000\u305d\u3093\u306a\u308f\u3051\u3067\u3046\u3061\u306e\u30b5\u30a4\u30c8\u3082SSL\u5316\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2 id=\"ssl\u8a3c\u660e\u66f8\u306f\u7121\u6599\">SSL\u8a3c\u660e\u66f8\u306f\u7121\u6599<\/h2>\n<p>\u3000\u6700\u8fd1\u306f\u3001Let&#8217;s Encrypt\u3068\u3044\u3046\u7121\u6599\u3067SSL\u3092\u767a\u884c\u3057\u3066\u304f\u308c\u308b\u30b5\u30fc\u30d3\u30b9\u304c\u3042\u308a\u307e\u3059\u3002\u6709\u52b9\u671f\u9650\u306f\u7d50\u69cb\u77ed\u3081\u306a\u306e\u3067\u3059\u304c\u3001\u671f\u9650\u5207\u308c\u306b\u306a\u308a\u305d\u3046\u306b\u306a\u3063\u305f\u3089\u81ea\u52d5\u3067\u66f4\u65b0\u3059\u308b\u4ed5\u7d44\u307f\u3082\u3042\u3063\u3066\u7279\u306b\u4e0d\u81ea\u7531\u306a\u304f\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>\u3000\u3060\u3044\u3076\u524d\u306bmastodon\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u304d\u306b\u3053\u306e\u3042\u305f\u308a\u306e\u8a2d\u5b9a\u306f\u3057\u3066\u3057\u307e\u3063\u3066\u3001\u65e2\u306b\u5177\u4f53\u7684\u306a\u3084\u308a\u65b9\u306f\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u5272\u611b\u3067\u3059&#x1f600;<\/p>\n<h2 id=\"nginxnaxsi\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u307e\u308b\">Nginx + Naxsi\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u307e\u308b<\/h2>\n<p>\u3000Nginx\u306b\u3061\u3083\u3093\u3068SSL\u306e\u8a2d\u5b9a\u3092\u3057\u305f\u3064\u3082\u308a\u3067\u3059\u304c\u3001https\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u306a\u305c\u304b\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304cerror.log\u306b\u5927\u91cf\u306b\u5410\u304d\u51fa\u3055\u308c\u305f\u3002<\/p>\n<pre><code>2018\/03\/06 12:52:17 [alert] 8538#8538: worker process 9490 exited on signal 11\n<\/code><\/pre>\n<p>\u3000\u30d7\u30ed\u30bb\u30b9\u304c\u843d\u3061\u3066\u308b\u3093\u3060\u3051\u3069\u3001\u30cd\u30c3\u30c8\u3067\u8abf\u3079\u308b\u3068\u4ee5\u4e0b\u306e\u8a18\u4e8b\u304c\u30d2\u30c3\u30c8\u3057\u305f\u3002<\/p>\n<p><a class=\"embedly-card\" href=\"https:\/\/support.sysally.net\/boards\/1\/topics\/3161\">Site with SSL doesn&#8217;t work when Proxying to apache. &#8211; ndeploy &#8211; SysAlly<\/a><script async src=\"\/\/cdn.embedly.com\/widgets\/platform.js\" charset=\"UTF-8\"><\/script><\/p>\n<p>\u3000naxsi\u306e\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30d0\u30b0\u3089\u3057\u3044&#x1f613;<\/p>\n<p>\u3000nginx\u3068naxsi\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u843d\u3068\u3057\u3066\u30d3\u30eb\u30c9\u3057\u76f4\u3057\u305f\u3002<\/p>\n<pre><code class=\"bash\">cd \/usr\/local\/src\/\nsudo rm -fr naxsi\nsudo rm naxsi-master.zip\nsudo curl -fSL https:\/\/github.com\/nbs-system\/naxsi\/archive\/master.zip -o naxsi-master.zip\nsudo unzip naxsi-master.zip -d naxsi\n\n#\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u843d\u3068\u3057\u3066\u304d\u305f\u3002https:\/\/nginx.org\/download\u304b\u3089\u63a2\u3057\u305f\nsudo rm nginx.tar.gz\nsudo rm -fr nginx-1.10.1\nsudo curl -fSL https:\/\/nginx.org\/download\/nginx-1.13.9.tar.gz -o nginx.tar.gz\nsudo tar zxfv nginx.tar.gz\n\ncd nginx-1.13.9\/\nsudo .\/configure  --prefix=\/etc\/nginx \\\n        --sbin-path=\/usr\/sbin\/nginx \\\n        --modules-path=\/usr\/lib\/nginx\/modules \\\n        --add-module=..\/naxsi\/naxsi-master\/naxsi_src \\\n        --conf-path=\/etc\/nginx\/nginx.conf \\\n        --error-log-path=\/var\/log\/nginx\/error.log \\\n        --http-log-path=\/var\/log\/nginx\/access.log \\\n        --pid-path=\/var\/run\/nginx.pid \\\n        --lock-path=\/var\/run\/nginx.lock \\\n        --http-client-body-temp-path=\/var\/cache\/nginx\/client_temp \\\n        --http-proxy-temp-path=\/var\/cache\/nginx\/proxy_temp \\\n        --http-fastcgi-temp-path=\/var\/cache\/nginx\/fastcgi_temp \\\n        --http-uwsgi-temp-path=\/var\/cache\/nginx\/uwsgi_temp \\\n        --http-scgi-temp-path=\/var\/cache\/nginx\/scgi_temp \\\n        --user=nginx \\\n        --group=nginx \\\n        --with-http_ssl_module \\\n        --with-http_realip_module \\\n        --with-http_addition_module \\\n        --with-http_sub_module \\\n        --with-http_gunzip_module \\\n        --with-http_gzip_static_module \\\n        --with-http_random_index_module \\\n        --with-http_secure_link_module \\\n        --with-http_stub_status_module \\\n        --with-http_auth_request_module \\\n        --with-http_xslt_module=dynamic \\\n        --with-http_image_filter_module=dynamic \\\n        --with-http_geoip_module=dynamic \\\n        --with-http_perl_module=dynamic \\\n        --with-threads \\\n        --with-stream \\\n        --with-stream_ssl_module \\\n        --with-http_slice_module \\\n        --with-mail \\\n        --with-mail_ssl_module \\\n        --with-file-aio \\\n        --with-http_v2_module\n\nsudo make\nsudo systemctl stop nginx\nsudo make install\nsudo systemctl start nginx\n<\/code><\/pre>\n<p>\u3053\u308c\u3067https\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u753b\u9762\u306f\u5d29\u308c\u306f\u3059\u308b\u3082\u306e\u306eSSL\u3067\u30da\u30fc\u30b8\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<h2 id=\"wordpress\u306e\u30ea\u30f3\u30af\u306e\u66f8\u304d\u63db\u3048\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\">WordPress\u306e\u30ea\u30f3\u30af\u306e\u66f8\u304d\u63db\u3048\u306f\u30d7\u30e9\u30b0\u30a4\u30f3\u3067<\/h2>\n<p>https\u3067\u30da\u30fc\u30b8\u306f\u8868\u793a\u3067\u304d\u305f\u3082\u306e\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u5148\u304chttp\u306b\u98db\u3093\u3060\u308a\u3001\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u3002CSS\u3082\u9069\u7528\u3055\u308c\u306a\u3044\u3002<\/p>\n<p>\u3000\u307e\u305a\u300cReally Simple SSL\u300d\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5165\u308c\u308b\u3068\u30c7\u30b6\u30a4\u30f3\u306e\u5d29\u308c\u306f\u76f4\u308b\u3002\u3053\u308c\u6709\u52b9\u306b\u3059\u308b\u3068\u7ba1\u7406\u753b\u9762\u304c\u771f\u3063\u767d\u306b\u306a\u3063\u3066\u7126\u308b\u304c\u3001\u307e\u305f\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u3057\u76f4\u3057\u305f\u3089\u3061\u3083\u3093\u3068\u52d5\u3044\u305f\u3002<\/p>\n<p>\u3000\u3053\u308c\u3067\u3082\u307e\u3060\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u3002\u3053\u308c\u306f\u8a18\u4e8b\u5185\u3067http\u304b\u3089\u59cb\u307e\u308b\u30a2\u30c9\u30ec\u30b9\u3092\u66f8\u3044\u3066\u3044\u305f\u305f\u3081\u3067\u3001\u300cSearch Regex\u300d\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u300chttp:\/\/a-tak.com\u300d\u3092\u300chttps:\/\/a-tak.com\u300d\u306b\u4e00\u62ec\u7f6e\u63db\u3057\u3066\u5bfe\u5fdc\u3002<\/p>\n<h2 id=\"\u610f\u5916\u3068\u7c21\u5358\u306bssl\u5316\u3067\u304d\u305f\">\u610f\u5916\u3068\u7c21\u5358\u306bSSL\u5316\u3067\u304d\u305f<\/h2>\n<p>\u3000\u4ee5\u4e0a\u3067\u3046\u3061\u306e\u30b5\u30a4\u30c8\u306eSSL\u5316\u306f\u5b8c\u4e86\u3057\u305f\u3002<\/p>\n<p>\u3000naxsi\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u554f\u984c\u3067\u3072\u3063\u304b\u304b\u3089\u306a\u3051\u308c\u3071\u3001\u304b\u306a\u308a\u7c21\u5358\u306b\u7d42\u308f\u3063\u3066\u305f\u306f\u305a\u3002\u3053\u308c\u3067SSL\u5316\u306e\u6ce2\u306b\u4e57\u308c\u3066\u4e00\u5b89\u5fc3\u3067\u3059\u3002<\/p><div id=\"advads-2991738373\" class=\"advads-content-placement-after-3rd-paragraph advads-entity-placement\" style=\"margin-left: auto;margin-right: auto;text-align: center;\"><div class=\"advads-adlabel\">\u5e83\u544a<\/div><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-7585646298782746\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:300px;height:250px;\" \ndata-ad-client=\"ca-pub-7585646298782746\" \ndata-ad-slot=\"6112122906\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3000WordPress\u306e\u30d6\u30ed\u30b0\u3092SSL\u5316\u3057\u307e\u3057\u305f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[28],"tags":[625,9,58,624],"class_list":["post-12759","post","type-post","status-publish","format-standard","hentry","category-website","tag-ssl","tag-wordpress","tag-58","tag-624"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/posts\/12759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/comments?post=12759"}],"version-history":[{"count":0,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/posts\/12759\/revisions"}],"wp:attachment":[{"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/media?parent=12759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/categories?post=12759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a-tak.com\/blog\/wp-json\/wp\/v2\/tags?post=12759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}