꽃지닷컴's 블로그

413 Request Entity Too Large 본문

IT

413 Request Entity Too Large

비누남어 2022. 5. 20. 11:06
반응형

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php7.4-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
        client_max_body_size 100M;  이 항목을 추가해 주면 오류가 해결됨.
        fastcgi_buffers 8 16k;
        fastcgi_buffer_size 32k;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;

 

#] sudo nginx -s reload

#] sudo service nginx restart

반응형
Comments