注意 v1d2 最优先匹配
server {
listen 80;
server_name localhost;
location /v1d2 {
proxy_pass http://127.0.0.1:8088;
}
location / {
root /data/dist;
try_files $uri $uri/ @router;
index index.html index.htm;
}
location @router {
rewrite ^.*$ /index.html last;
}
}