Browse Source

上传文件至 ''

chenxixian 6 năm trước cách đây
mục cha
commit
17ee7d7a1c
2 tập tin đã thay đổi với 34 bổ sung0 xóa
  1. 1 0
      default.conf
  2. 33 0
      nginx.conf

+ 1 - 0
default.conf

@@ -9,6 +9,7 @@ server {
         root   /usr/share/nginx/html;
 index index.php index.html index.htm ;
 try_files $uri $uri/ /index.php?$query_string;
+client_max_body_size 8M;
     }
 
 location ~* \.(db3|json)$ {

+ 33 - 0
nginx.conf

@@ -0,0 +1,33 @@
+user  nginx nginx;
+worker_processes  1;
+
+error_log  /var/log/nginx/error.log warn;
+pid        /var/run/nginx.pid;
+
+
+events {
+    worker_connections  1024;
+}
+
+
+http {
+    include	  /etc/nginx/mime.types;
+    default_type  application/octet-stream;
+
+    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
+                      '$status $body_bytes_sent "$http_referer" '
+                      '"$http_user_agent" "$http_x_forwarded_for"';
+
+    access_log  /var/log/nginx/access.log  main;
+
+    sendfile        on;
+    #tcp_nopush     on;
+
+    keepalive_timeout  65;
+
+    #gzip  on;
+
+client_max_body_size 8M;
+
+    include /etc/nginx/conf.d/*.conf;
+}