{"id":128000,"date":"2020-06-12T17:09:16","date_gmt":"2020-06-12T09:09:16","guid":{"rendered":"http:\/\/4563.org\/?p=128000"},"modified":"2020-06-12T17:09:16","modified_gmt":"2020-06-12T09:09:16","slug":"nginx-%e4%b8%8d%e5%bb%ba%e8%ae%ae%e4%bd%bf%e7%94%a8-if-%e7%9a%84%e8%af%9d-%e8%bf%98%e8%83%bd%e6%80%8e%e6%a0%b7%e6%8e%a7%e5%88%b6%e5%8f%aa%e5%85%81%e8%ae%b8-get-%e8%af%b7%e6%b1%82","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=128000","title":{"rendered":"Nginx \u4e0d\u5efa\u8bae\u4f7f\u7528 if \u7684\u8bdd, \u8fd8\u80fd\u600e\u6837\u63a7\u5236\u53ea\u5141\u8bb8 GET \u8bf7\u6c42"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Nginx \u4e0d\u5efa\u8bae\u4f7f\u7528 if \u7684\u8bdd, \u8fd8\u80fd\u600e\u6837\u63a7\u5236\u53ea\u5141\u8bb8 GET \u8bf7\u6c42               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aoscici2000 <\/span>  <span><i><\/i> 63<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<pre><code>if ($request_method != GET) {                                       return 405; } <\/code><\/pre>\n<p>\u4f8b\u5982<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"34434\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gstqc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/nginx.org\/en\/docs\/http\/ngx_http_core_module.html#limit_except                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"34435\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sagaxu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             The only 100% safe things which may be done inside if in a location context are:<\/p>\n<p>return &#8230;;<br \/>rewrite &#8230; last;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Nginx \u4e0d\u5efa\u8bae\u4f7f\u7528 if \u7684\u8bdd&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/128000"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=128000"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/128000\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=128000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=128000"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=128000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}