Agus Setiawan's Blog

Life with UNIX/Linux

Nginx Error : 413 Request Entity Too Large

with 2 comments

Jika Anda mendapatkan error ketika mengupload file dan keluar 413 Request Entity Too Large pada nginx, berikut tipsnya agar Anda bisa mengupload lebih dari 1-2 MB.  Edit file konfigurasi nginx.conf menjadi seperti ini.

server {
client_max_body_size 64M;
listen       80;
server_name  localhost;

#charset koi8-r;
#access_log  logs/host.access.log  main;

location / {
root   /usr/local/www/data;
index  index.php;
#auth_basic            “Maaf, Anda tidak berhak mengakses halaman ini”;
#auth_basic_user_file  conf/htpasswd;
}

Written by Agus Setiawan

February 7th, 2010 at 5:40 pm

Posted in FreeBSD, NGINX

2 Responses to 'Nginx Error : 413 Request Entity Too Large'

Subscribe to comments with RSS or TrackBack to 'Nginx Error : 413 Request Entity Too Large'.

  1. pak bos, php.ini perlu diedit juga gak?
    yang bagian max_upload_size ?

    inad

    15 Feb 10 at 9:07 pm

  2. Agus Setiawan

    16 Feb 10 at 1:25 am

Leave a Reply