nginx.conf 에서 파일 업로드 용량 설정 > 개발자팁

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

nginx.conf 에서 파일 업로드 용량 설정 정보

웹서버 nginx.conf 에서 파일 업로드 용량 설정

본문

http {

    ...

 

    client_max_body_size 20m;


    ...




이외에 


php.ini 설정도 확인해 보시기 바랍니다.


upload_max_filesize = 20M

post_max_size = 20M




// nginx, php-fpm 재실행

# systemctl restart nginx.service 

# systemctl restart php-fpm.service 

추천
1
  • 복사

댓글 2개

덧붙여서 용량하고는 관계 없지만 업로드에 걸리는 시간 때문에 뻗는 경우가 있을 때는
php의 max_execution_time
nginx의 client_header_timeout, client_body_timeout, send_timeout, keepalive_timeout, proxy_connect_timeout, proxy_send_timeout, proxy_read_timeout 설정을 올려주면서 태스트 해보심 좋습니다.
© SIRSOFT
현재 페이지 제일 처음으로