Explorar el Código

add php ngx conf

abiao hace 5 años
padre
commit
0140b11b08
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. 2 4
      webApp/common/nginx_conf/ngx_test.conf

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

@@ -33,10 +33,8 @@ server {
     root   /home/www/yii2_app/webApp/frontend/web/;
     index  index.php index.html index.htm;
     try_files $uri $uri/ /index.php?$args;
-    location / {
-       try_files $uri $uri/ /index.html;
-       expires  30d;
-      #rewrite ^(.*)$ /static/maintain.html break;
+    location /uploads {
+        root /home/www/yii2_app/webApp/frontend/web/uploads;
     }
 
     location ~ \.php$ {