From 717834023b27b98aa86f935f58221a81931d4eef Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 24 Sep 2015 09:20:57 +0800 Subject: [PATCH] fix nginx upload max size --- nginad/nginx.conf | 4 ++++ revive/nginx.conf | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/nginad/nginx.conf b/nginad/nginx.conf index 0d05ddd..0d65e87 100644 --- a/nginad/nginx.conf +++ b/nginad/nginx.conf @@ -14,6 +14,10 @@ http { server { listen 80; server_name _; + + client_max_body_size 4M; + client_body_buffer_size 128k; + root /var/www/html/upload/public; try_files $uri @php_index; diff --git a/revive/nginx.conf b/revive/nginx.conf index ca7ba23..36b7c8f 100644 --- a/revive/nginx.conf +++ b/revive/nginx.conf @@ -14,6 +14,10 @@ http { server { listen 80; server_name _; + + client_max_body_size 4M; + client_body_buffer_size 128k; + root /var/www/html; index index.php;