피곤한부엉이 개발일지

nginx 파일 업로드 용량 설정하기 본문

프로그래밍/Web

nginx 파일 업로드 용량 설정하기

피곤한부엉이 2023. 3. 30. 13:59

client_max_body_size 값을 지정하지 않았을 경우 기본값으로 1MB로 설정됩니다.

client_max_body_size 300M;

client_max_body_size 값 이리 지정하면 300M으로 설정됩니다.

 

server 모듈 안쪽에 넣으시면 됩니다. 아래는 참고 문건입니다.

 

---아래---

 

nigx 사이트에서 있는 설명

본문:

Sets the maximum allowed size of the client request body. If the size in a request exceeds the configured value, the 413 (Request 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.

 

파파고:

클라이언트 요청 본문의 최대 허용 크기를 설정합니다. 요청의 크기가 구성된 값을 초과하면 413(Request Entity Too Large) 오류가 클라이언트에 반환됩니다. 브라우저는 이 오류를 올바르게 표시할 수 없습니다. 크기를 0으로 설정하면 클라이언트 요청 본문 크기를 확인할 수 없습니다.

 

출처

http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size