9. nginx - troubleshoot

 

介紹

 


問題1: Upload 東西時見到

nginx 413 Request Entity Too Large

解決1: (Module ngx_http_core_module)

http {
    #...
        client_max_body_size 100m;
        send_timeout 60s;
    #...
}

nginx "fails fast" when the client informs it that it's going to send a body larger than the client_max_body_size by sending a 413 response and closing the connection.(Setting size to 0 disables checking of client request body size. )

send_timeout 60s;

Sets a timeout for transmitting a response to the client
(The timeout is set only between two successive write operations)
 

Creative Commons license icon Creative Commons license icon