首頁 >後端開發 >php教程 >Nginx反向代理上傳大檔案報錯(failed to load resource : net :: ERR_CONNECTION_RESET)

Nginx反向代理上傳大檔案報錯(failed to load resource : net :: ERR_CONNECTION_RESET)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原創
2016-07-29 09:01:518143瀏覽

Nginx反向代理上傳大文件報錯(failed to load resource : net :: ERR_CONNECTION_RESET)

http://nginx.org/en/docs/http/ngx_http_core_module.htmlbodycliclicli_obshtml請使用Nginx反向代理上傳大檔案報錯

<code>failed <span>to</span><span>load</span> resource : net :: ERR_CONNECTION_RESET</code>
經查是Nginx的設定問題。

使用

<code>client_max_body_size <span>size</span>;</code>

用於配置請求中Body的最大可允許值。 size的單位為M,Nginx預設的設定是1m。數值按需自行設定即可。例如限制為1G:

<code>client_max_body_size 1024m;</code>

此配置可放在 http | server | location 任一處,對應不同的作用範圍。

官方文件說明:

<code><span>Syntax</span>: <span>client_max_body_size size;</span><span>Default</span>: <span>client_max_body_size 1m;</span><span>Context</span>: <span>http, server, location</span></code>

官方文件說明:

rrreee

官方文件說明: rrreee附

官方文件說明:

rrreee

🎜官方文件說明: 🎜rrreee🎜附🎜🎜官方文件說明: 🎜rrreee🎜  Sets the maximum allowed size of the client request body, specified in the “Content-Length” request header fieldent request body, specified in the “Content-Length” request header field. Ifquest size in a​​stal the revalue the config. Entity Too Large) error is returned to the client. Please be aware that browsers cannot correctly display this error. Setting size to 0 disables checking of client request body size.🎜🎜'). ); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i 🎜').text(i)); }; $numbering.fadeIn(1700); }); }); 🎜 🎜 以上就介紹了Nginx反向代理上傳大文件報錯(failed to load resource : net :: ERR_CONNECTION_RESET),包括了方面的內容,希望對PHP教程有興趣的朋友有所幫助。 🎜 🎜 🎜
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn