User ingin mengunggah file yang lumayan besar di web yang menggunakan Nginx reverse proxy dan backend web server menggunakan apache.
Pastikan konfigurasi backend web server di file /etc/php.ini
1 2 |
post_max_size = 150M upload_max_filesize = 150M |
Tambahkan baris perintah di /etc/nginx/conf.d/vhost.conf
1 2 3 4 |
server { client_max_body_size 100M; ... } |
1 |
systemctl restart nginx |
Sumber :
- https://www.keycdn.com/support/413-request-entity-too-large
- https://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/
Was this helpful?
0 / 0