location / {
root /usr/local/yingshang/;位置
index index.html index.htm;
try_files $uri $uri/ @router;
}
#重点是这个地方配置
location @router {
rewrite ^.*$ /index.html last;
}
location / {
root /usr/local/yingshang/;位置
index index.html index.htm;
try_files $uri $uri/ @router;
}
#重点是这个地方配置
location @router {
rewrite ^.*$ /index.html last;
}