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
'Server' 카테고리의 다른 글
[Linux] Ubuntu 사용자 계정 생성 및 접속 설정 (0) | 2024.02.18 |
---|---|
iptables 80포트 설정 (0) | 2022.09.13 |
Nginx request 제한 설정하기 (0) | 2021.09.16 |
Nginx https 적용하기 openssl 사용, http https로 리다이렉트 (0) | 2021.09.08 |