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

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

@@ -34,10 +34,11 @@ server {
     index  index.php index.html index.htm;
     index  index.php index.html index.htm;
     try_files $uri $uri/ /index.php?$args;
     try_files $uri $uri/ /index.php?$args;
 
 
-      location =/ {
-        root /home/www/yii2_app/webApp/frontend/web
-        expires  30d;
-      }
+    location / {
+      try_files $uri $uri/ /index.html;
+      expires  30d;
+
+    }
 
 
     location ~ \.php$ {
     location ~ \.php$ {
         fastcgi_pass   127.0.0.1:9000;
         fastcgi_pass   127.0.0.1:9000;