Nginx反向代理上傳大文件報錯(failed to load resource : net :: ERR_CONNECTION_RESET)
經查是Nginx的設定問題。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>登入後複製
使用
<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 astal 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教程有興趣的朋友有所幫助。 🎜 🎜 🎜