{"id":946,"date":"2014-09-14T03:22:36","date_gmt":"2014-09-13T18:22:36","guid":{"rendered":"http:\/\/tech.akat.info\/?p=946"},"modified":"2014-09-16T01:12:21","modified_gmt":"2014-09-15T16:12:21","slug":"nginx%e3%81%a7%e3%81%aedos%e6%94%bb%e6%92%83%e5%af%be%e7%ad%96","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=946","title":{"rendered":"nginx\u3067\u306edos\u653b\u6483\u5bfe\u7b56"},"content":{"rendered":"<h1>\u6982\u8981<\/h1>\n<p>\u3053\u306eWordPress\u30b5\u30a4\u30c8\u304cdos\u653b\u6483\u3055\u308c\u3001\u843d\u3061\u305f\u3002\u3002<br \/>\n\u305d\u306e\u305f\u3081\u5bfe\u7b56\u3057\u305f<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n80.82.65.17 - - &#x5B;13\/Sep\/2014:16:59:26 +0000] &quot;POST \/xmlrpc.php HTTP\/1.0&quot; 502 568 &quot;-&quot; &quot;Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)&quot;\r\n80.82.65.17 - - &#x5B;13\/Sep\/2014:16:59:27 +0000] &quot;POST \/xmlrpc.php HTTP\/1.0&quot; 502 568 &quot;-&quot; &quot;Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)&quot;\r\n80.82.65.17 - - &#x5B;13\/Sep\/2014:16:59:29 +0000] &quot;POST \/xmlrpc.php HTTP\/1.0&quot; 502 568 &quot;-&quot; &quot;Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)&quot;\r\n80.82.65.17 - - &#x5B;13\/Sep\/2014:16:59:29 +0000] &quot;POST \/xmlrpc.php HTTP\/1.0&quot; 502 568 &quot;-&quot; &quot;Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)&quot;\r\n80.82.65.17 - - &#x5B;13\/Sep\/2014:16:59:30 +0000] &quot;POST \/xmlrpc.php HTTP\/1.0&quot; 502 568 &quot;-&quot; &quot;Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)&quot;\r\n80.82.65.17 - - &#x5B;13\/Sep\/2014:16:59:31 +0000] &quot;POST \/xmlrpc.php HTTP\/1.0&quot; 504 578 &quot;-&quot; &quot;Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)&quot;\r\n80.82.65.17 - - &#x5B;13\/Sep\/2014:16:59:31 +0000] &quot;POST \/xmlrpc.php HTTP\/1.0&quot; 502 568 &quot;-&quot; &quot;Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)&quot;\r\n80.82.65.17 - - &#x5B;13\/Sep\/2014:16:59:32 +0000] &quot;POST \/xmlrpc.php HTTP\/1.0&quot; 502 568 &quot;-&quot; &quot;Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)&quot;\r\n80.82.65.17 - - &#x5B;13\/Sep\/2014:16:59:32 +0000] &quot;POST \/xmlrpc.php HTTP\/1.0&quot; 502 568 &quot;-&quot; &quot;Mozilla\/4.0 (compatible: MSIE 7.0; Windows NT 6.0)&quot;\r\n<\/pre>\n<h1>\u8a2d\u5b9a\u5185\u5bb9<\/h1>\n<h2>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n### http \u30b3\u30f3\u30c6\u30f3\u30c4 ###\r\nlimit_req_zone       $binary_remote_addr  zone=one:10m rate=10r\/s;\r\n### server \u30b3\u30f3\u30c6\u30f3\u30c4 - location \/ ###  \r\nlimit_req  zone=one;\r\n<\/pre>\n<h2>limit_req_zone<\/h2>\n<p>$binary_remote_addr\uff1a\u8b58\u5225\u5b50\u3092\u6307\u5b9a\u3059\u308b<br \/>\nzone=one:10m\uff1a\u30be\u30fc\u30f3\u540d\u3068\u30e1\u30e2\u30ea\u30b5\u30a4\u30ba\u306e\u6307\u5b9a<br \/>\n\u3000State\u4fdd\u5b58\u7528\u306b10MB\u3092\u78ba\u4fdd\u3057\u3066\u3044\u308b\u30021\u79d2\u9593\u3042\u305f\u308a\u306e\u8981\u6c42\u6570\u306f\u3001\u3053\u306e\u30be\u30fc\u30f3\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u3092\u3082\u3068\u306b\u5e73\u5747\u5024\u3068\u3057\u3066\u7b97\u51fa\u3059\u308b<br \/>\n\u3000$binary_remote_addr \u306e\uff11\u3064\u306e\u30b5\u30a4\u30ba\u304c64\u30d0\u30a4\u30c8\u3067\u3042\u308b\u305f\u3081\u300110(MB) = 10,000,000(Byte) \u00f7 64(Byte) = 156,250 (Session)\u3092\u4fdd\u5b58\u3067\u304d\u308b<br \/>\nrate=10r\/s\uff1a\u79d2\u959310\u30ea\u30af\u30a8\u30b9\u30c8<\/p>\n<h2>limit_req zone<\/h2>\n<p>limit_req zone = name [ burst = number(default 0)] [ nodelay ]<br \/>\n\u30be\u30fc\u30f3 (zone) \u3068\u30d0\u30fc\u30b9\u30c8\u6642\u306e\u6700\u5927\u30ea\u30af\u30a8\u30b9\u30c8\u6570 (burst) \u3092\u6307\u5b9a<br \/>\n\u904e\u5270\u30ea\u30af\u30a8\u30b9\u30c8\u6570(\u4eca\u56de\u3067\u3042\u308c\u307010)\u304cburst\u306e\u6570\u5024\u4ee5\u5185\u3067\u3042\u308c\u3070\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9045\u5ef6\u3055\u305b\u308b<br \/>\n\u305f\u3060\u3057\u3001nodelay\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9045\u5ef6\u3055\u305b\u306a\u304f\u306a\u308b<br \/>\n\u904e\u5270\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u304cburst\u306e\u6570\u5024\u3092\u8d85\u904e\u3057\u305f\u5834\u5408\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u30b3\u30fc\u30c9 503 &#8220;Service Temporarily Unavailable&#8221; \u3092\u8fd4\u5374\u3059\u308b<\/p>\n<p>\u3064\u307e\u308a\u3001<strong>16\u4e07\u4ef6\u306e\u60c5\u5831\u306e\u3046\u3061\u304b\u30891\u79d2\u3042\u305f\u308a\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u3092\u8a08\u7b97\u3057\u3001\u79d2\u959310\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8d85\u3048\u308b\u3068503\u30a8\u30e9\u30fc\u3092\u8fd4\u5374\u3059\u308b<\/strong><\/p>\n<h1>\u53c2\u8003URL<\/h1>\n<p>\u516c\u5f0f-HttpLimitReqModuleJa-<br \/>\nhttp:\/\/wiki.nginx.org\/HttpLimitReqModuleJa<br \/>\n\u5bfe\u7b56\u65b9\u6cd5<br \/>\nhttp:\/\/tech.kayac.com\/archive\/nginx-httplimitreqmodule.html<br \/>\n\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u8a73\u7d30<br \/>\nhttp:\/\/server-setting.info\/centos\/nginx-limit_rate.html<br \/>\nhttp:\/\/wiki.arashike.com\/nginx\/limit_request_per_sec_by_client<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u3053\u306eWordPress\u30b5\u30a4\u30c8\u304cdos\u653b\u6483\u3055\u308c\u3001\u843d\u3061\u305f\u3002\u3002 \u305d\u306e\u305f\u3081\u5bfe\u7b56\u3057\u305f 80.82.65.17 &#8211; &#8211; &#x5B;13\/Sep\/2014:16:59:26 +0000] &quot;POST \/xmlrpc. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/946"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=946"}],"version-history":[{"count":7,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/946\/revisions"}],"predecessor-version":[{"id":953,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/946\/revisions\/953"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}