abiao před 5 roky
rodič
revize
4a84aa7fad
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      webApp/common/nginx_conf/ngx_test.conf

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

@@ -34,9 +34,10 @@ server {
     index  index.php index.html index.htm;
     try_files $uri $uri/ /index.php?$args;
 
-    location ~ /api/(?!index.php).*$ {
-        rewrite /api/(.*) /api/index.php?r=$1 last;
-    }
+      location =/ {
+        root /home/www/yii2_app/webApp/frontend/web
+        expires  30d;
+      }
 
     location ~ \.php$ {
         fastcgi_pass   127.0.0.1:9000;