반응형
client intended to send too large body: 706373782 bytes, client: cli, server: example.com, request: "POST /upload"
nginx 의 가상 호스트 최대 용량을 지정하는 키워드인
client_max_body_size 설정 사이즈 보다 큰 파일들이 업로드 되었을 때 발생
cd /etc/nginx/sites-available/
vi default
// default 파일
server {
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
//사이즈를 늘려주자
//없을 경우 client_max_body_size 추가
client_max_body_size 256M;
}
client_max_body_size http, server, location 구문에서 설정이 가능함
반응형
'개발지식' 카테고리의 다른 글
Ubuntu 서버 Git 간단 설치 (0) | 2023.09.20 |
---|---|
git pull 명령어 실행 시 fatal: Need to specify how to reconcile divergent branches 해결방법 (0) | 2023.06.26 |
Git WebHook 등록하기 (Slack, Mattermost) (0) | 2023.06.23 |
SSH 편리하게 접속하기 (0) | 2023.06.15 |
Postman api 문서 만들기 (0) | 2023.02.07 |