Make Be BackEnd
[Nginx] 413 Request Entity Too Large 본문


현상
게시글에 이미지를 첨부하고 저장했을때 일어난 에러이다.
원인
nginx에서 지정한 허용량보다 큰 파일을 올렸을때 일어나는 에러이다. nginx.conf 파일에 허용량을 늘려주자!!!
해결
$ sudo vi /etc/nginx/nginx.conf
>> root 권한으로 들어가서 바로 추가하자
>> client_max_body_size 20m; << 추가 할 부분
http {
....
server_names_hash_buket_ ...
client_max_body_size 20m;
....
}
>> 저장 후 빠져 나오기
$ sudo service nginx reload'Error' 카테고리의 다른 글
| [AWS RDS] NOW(); TimeZone 수정 (0) | 2024.06.13 |
|---|---|
| [AWS EC2] 서버 시간 UTC -> Asia/Seoul변경 (0) | 2024.06.13 |
| [MyBatis] selectKey return 값이 1만 나올때 !!!! (0) | 2024.06.07 |
| [Bean 의존성 주입] [Request processing failed; nested exception is java.lang.NumberFormatException: null] (1) (0) | 2024.06.07 |
| [Bean 의존성 주입] nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException (0) | 2024.06.05 |