@@ -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;