{"id":1025,"date":"2020-06-23T20:36:27","date_gmt":"2020-06-23T11:36:27","guid":{"rendered":"http:\/\/strikenetwork.dip.jp\/masa\/?p=1025"},"modified":"2020-06-23T20:36:27","modified_gmt":"2020-06-23T11:36:27","slug":"nginx%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/strikenetwork.mydns.jp\/masa\/?p=1025","title":{"rendered":"Nginx\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/qiita.com\/hideji2\/items\/1421f9bff2a97a5e5794\">https:\/\/qiita.com\/hideji2\/items\/1421f9bff2a97a5e5794<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3060\u3057\u3001\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u306f\u6709\u52b9\u306b\u3059\u308b\u3068wordpress\u304c\u8aa4\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001\u30b3\u30e1\u30f3\u30c8\u306b\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><br><\/p><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>HTTP \u30e1\u30bd\u30c3\u30c9\u306e\u5236\u9650<\/p><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u4e0d\u8981\u306aHTTP\u30e1\u30bd\u30c3\u30c9\u3092\u53d7\u3051\u4ed8\u3051\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br>GET\u4ee5\u5916\u306eHTTP\u30e1\u30bd\u30c3\u30c9\u4ee5\u5916\u306e\u5834\u5408\u306f403\u3092\u8fd4\u3059\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002conf.d\/default.conf<\/p><\/blockquote>\n\n\n\n<pre class=\"wp-block-preformatted\">if ($request_method != GET ) {\n    return 403;\n}<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Content-Security-Policy<\/p><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Content Security Policy (CSP) \u306f\u3001\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30b9\u30af\u30ea\u30d7\u30c6\u30a3\u30f3\u30b0 (XSS) \u3084\u30c7\u30fc\u30bf\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u653b\u6483\u3092\u542b\u3080\u3001\u3088\u304f\u77e5\u3089\u308c\u305f\u7a2e\u985e\u306e\u653b\u6483\u3092\u691c\u51fa\u3057\u3066\u8efd\u6e1b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u4f8b\u3048\u3070\u3001WebFont\u53ca\u3073Google Analytics\u3092\u8a31\u5bb9\u3059\u308b\u8a2d\u5b9a\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002conf.d\/default.conf<\/p><\/blockquote>\n\n\n\n<pre class=\"wp-block-preformatted\">add_header Content-Security-Policy \"default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https:\/\/ssl.google-analytics.com; img-src 'self' https:\/\/ssl.google-analytics.com; style-src 'self' 'unsafe-inline' https:\/\/fonts.googleapis.com 'self' https:\/\/themes.googleusercontent.com; frame-src 'none' object-src 'none'\";\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/qiita.com\/hideji2<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1025","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/posts\/1025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1025"}],"version-history":[{"count":0,"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/posts\/1025\/revisions"}],"wp:attachment":[{"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}