본문 바로가기
IT

Nginx 1.x 413 request entity too large

by 세계정보ㄱ 2012. 2. 5.
728x90
반응형

nginx.conf 설정에서 client_max_body_size xxM 을 추가/수정 해준다.
http://wiki.nginx.org/HttpCoreModule#client_max_body_size 

client_max_body_size

syntax: client_max_body_size size

default: client_max_body_size 1m

context: http, server, location

Specifies the maximum accepted body size of a client request, as indicated by the request header Content-Length.

If the stated content length is greater than this size, then the client receives the HTTP error code 413 ("Request Entity Too Large"). It should be noted that web browsers do not usually know how to properly display such an HTTP error.
 
 
728x90
반응형