location / {
root /usr/share/nginx/html/;
index index.html index.htm;
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
Nginx部署Vue项目刷新404问题
最新推荐文章于 2024-02-01 10:13:15 发布