{"id":897,"date":"2018-07-27T09:47:38","date_gmt":"2018-07-27T01:47:38","guid":{"rendered":"https:\/\/blog.jsjs.org\/?p=897"},"modified":"2018-07-27T09:47:38","modified_gmt":"2018-07-27T01:47:38","slug":"%e4%b8%89%e4%b8%aanginx%e9%85%8d%e7%bd%ae%e9%97%ae%e9%a2%98%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/blog.jsjs.org\/?p=897","title":{"rendered":"\u4e09\u4e2anginx\u914d\u7f6e\u95ee\u9898\u7684\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p>\u4eca\u5929\u5f00\u542f\u4e86nginx\u7684error_log\uff0c\u53d1\u73b0\u4e86\u4e09\u4e2a\u914d\u7f6e\u95ee\u9898\uff1a<\/p>\n<div>\n<wbr \/><\/p>\n<div>\u95ee\u9898\u4e00\uff1a<\/div>\n<div>2011\/07\/18 17:04:37 [warn] 2422#0: *171505004 an upstream response is buffered to a temporary file \/opt\/app\/nginx\/fastcgi_temp\/9\/80\/0001539809 while reading upstream, client: 1.202.221.2, server: www.yongfu.com, request: &#8220;GET \/recipe\/all?cate=643&amp;PHPSESSID=8c1135b85f1b5f90f55caab5ea7e1526 HTTP\/1.0&#8221;, upstream: &#8220;fastcgi:\/\/127.0.0.1:9000&#8221;, host: &#8220;www.yongfu.com&#8221;<\/div>\n<div>\u95ee\u9898\u5206\u6790\uff1anginx\u7684fastcgi\u8bbe\u7f6e\u7684fastcgi_buffers\u592a\u5c0f\uff0c\u5bfc\u81f4\u5c06\u7f13\u5b58\u5199\u5165\u78c1\u76d8\u3002<\/div>\n<div>\u95ee\u9898\u89e3\u51b3\uff1a\u4fee\u6539nginx\u7684\u914d\u7f6e\uff0c\u5c06fastcgi_buffers\u8c03\u5927\uff0c\u53c2\u8003\u4e86\u8be5\u6587\uff1a<a href=\"http:\/\/www.ruby-forum.com\/topic\/140625\" rel=\"nofollow\">http:\/\/www.ruby-forum.com\/topic\/140625<\/a><\/div>\n<div>\n<pre><span style=\"font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;\">fastcgi_buffers 32 8k;<\/span><\/pre>\n<\/div>\n<div>ok\uff0c\u95ee\u9898\u89e3\u51b3\uff0c\u4f46\u53c8\u51fa\u73b0\u65b0\u7684\u95ee\u9898\uff1a<\/div>\n<div><\/div>\n<div>\u95ee\u9898\u4e8c\uff1a<\/div>\n<div>2011\/07\/18 17:10:21 [warn] 2898#0: *171505297 a client request body is buffered to a temporary file \/opt\/app\/nginx\/client_body_temp\/0001539931, client: 114.237.110.152, server: www.yongfu.com, request: &#8220;POST \/recipe\/create\/58884?do=uploadstep HTTP\/1.1&#8221;, host: &#8220;www.yongfu.com&#8221;, referrer: &#8220;http:\/\/www.yongfu.com\/recipe\/create\/58884&#8221;<\/div>\n<div>\u95ee\u9898\u5206\u6790\uff1a\u8fd8\u662f\u7f13\u5b58\u5199\u5165\u78c1\u76d8\u7684\u95ee\u9898\u3002<\/div>\n<div>\u95ee\u9898\u89e3\u51b3\uff1a\u4fee\u6539nginx.conf\u7684client_max_body_size &amp;\u00a0client_body_buffer_size\u9009\u9879\u3002\u53c2\u8003\u4e86\uff1a<a href=\"http:\/\/nginx.org\/pipermail\/nginx\/2009-July\/013634.html\" rel=\"nofollow\">http:\/\/nginx.org\/pipermail\/nginx\/2009-July\/013634.html<\/a><\/div>\n<div>\n<pre><span style=\"font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;\">client_max_body_size 500m;\nclient_body_buffer_size 1024k;<\/span><\/pre>\n<\/div>\n<div><\/div>\n<div>\u95ee\u9898\u4e09\uff1a<\/div>\n<div>2011\/07\/18 16:43:39 [warn] 18326#0: *28601 using uninitialized &#8220;rule_1&#8221; variable, client: 192.168.1.6, server: yongfu.com, request: &#8220;GET \/user\/notice.php?callback=jsonp1310978365248&amp;_=1310978696380 HTTP\/1.1&#8221;, host: &#8220;www.yongfu.com&#8221;, referrer: &#8220;http:\/\/www.yongfu.com\/act\/cooking?m=creview&#8221;<\/div>\n<div>\u95ee\u9898\u5206\u6790\uff1a\u8fd9\u4e2a\u662f\u56e0\u4e3a\u6211\u7684rewrite\u89c4\u5219\u91cc\u7684\u53d8\u91cfrule_1\u7684\u95ee\u9898\u3002<\/div>\n<div>\n<pre><span style=\"font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;\">if (!-f $document_root$uri){\n  set $rule_1 \"1\";\n}\nif ($rule_1 = \"1\"){\n  rewrite ^\/.*$ \/rewrite.php last;\n}<\/span><\/pre>\n<\/div>\n<div>\u8bf4\u662f\u6ca1\u6709\u5b9a\u4e49rule_1\uff0c\u4f46\u6211\u5728\u90a3\u91cc\u5b9a\u4e49\u4e86\u5440\uff0c\u6ca1\u660e\u767d\u3002\u4f46\u5206\u6790\u8fd9\u4e24\u4e2a\u5224\u65ad\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u4ee3\u66ff\uff1a<\/div>\n<div>\u95ee\u9898\u89e3\u51b3\uff1a<\/div>\n<div>\n<pre><span style=\"font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;\">if (!-f $document_root$uri){\nrewrite ^\/.*$ \/rewrite.php last;\n}<\/span><\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5f00\u542f\u4e86nginx\u7684error_log\uff0c\u53d1\u73b0\u4e86\u4e09\u4e2a\u914d\u7f6e\u95ee\u9898\uff1a \u95ee\u9898\u4e00\uff1a 2011\/07\/18 17:04:37 [warn] 2422#0: *171505004 an upstream response is buffered to a temporary file \/opt\/app\/nginx\/fastcgi_temp\/9\/80\/0001539809 while reading upstream, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-897","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts\/897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=897"}],"version-history":[{"count":0,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=\/wp\/v2\/posts\/897\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jsjs.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}