Browse Source

nginx: config edit

Yi 1 year ago
parent
commit
45f9435ff5
1 changed files with 2 additions and 3 deletions
  1. 2 3
      default.conf.template

+ 2 - 3
default.conf.template

@@ -3,8 +3,6 @@ server {
    listen  [::]:80;
    server_name  localhost;
 
-   access_log  /var/log/nginx/host.access.log  main;
-
    gzip on;
    gzip_disable "msie6";
    gzip_vary on;
@@ -19,6 +17,8 @@ server {
         root /usr/share/nginx/html;
         #index index.html;
         try_files $uri $uri/ /index.html;
+        client_max_body_size    266m;   #最大接受266m文件以内的
+        client_body_timeout 20s;
    }
    #error_page  404              /404.html;
 
@@ -28,5 +28,4 @@ server {
    location = /50x.html {
       root   /usr/share/nginx/html;
    }
-
 }