abiao 5 rokov pred
rodič
commit
f7597e0f1a
1 zmenil súbory, kde vykonal 3 pridanie a 4 odobranie
  1. 3 4
      webApp/common/nginx_conf/ngx_test.conf

+ 3 - 4
webApp/common/nginx_conf/ngx_test.conf

@@ -34,10 +34,9 @@ server {
     index  index.php index.html index.htm;
     try_files $uri $uri/ /index.php?$args;
 
-    location / {
-      try_files $uri $uri/ /index.html;
-      expires  30d;
-
+   location ~* \.(gif|jpg|png)$ {
+          root /uploads/article/ueditor/php/upload/image;
+          expires 30d;   图片的过期时间是30天
     }
 
     location ~ \.php$ {