Explorar o código

add php ngx conf

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
a8a6b26ce9
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      webApp/common/nginx_conf/ngx_test.conf

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

@@ -34,10 +34,10 @@ server {
     index  index.php index.html index.htm;
     try_files $uri $uri/ /index.php?$args;
 
-    location ~* \.(gif|jpg|png)$ {
-       root /home/www/yii2_app/webApp/frontend/web/uploads/;
-       expires 30d;
-    }
+    location /uploads  {
+        alias /data/uploads/;
+     }
+
     location ~ \.php$ {
         fastcgi_pass   127.0.0.1:9000;
         fastcgi_index  index.php;