본문 바로가기

Server

Nginx 413 Request Entity Too Large 에러

728x90

nginx로 서버를 돌릴때 413 request entitiy too large 라는 에러가 떴다.

 

nginx에서 파일을 업로드할때 client_max_body_size값으로 제한이 되는데

디폴트값이 1MB이기 때문에 nginx.conf에서 값 설정을 해주어야한다.

 

http {
	...
    client_max_body_size 50M;
    ...
}

 

저장후 service nginx reload를 하면 재시작없이 수정된 부분만 반영된다.

728x90