abiao 5 éve
szülő
commit
391d82c57c
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      webApp/common/nginx_conf/ngx_test.conf

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

@@ -38,6 +38,10 @@ server {
         alias /home/www/yii2_app/webApp/frontend/web/uploads/;
     }
 
+    location ~ /api/(?!index.php).*$ {
+        rewrite /api/(.*) /api/index.php?r=$1 last;
+    }
+
     location ~ \.php$ {
         fastcgi_pass   127.0.0.1:9000;
         fastcgi_index  index.php;