在location中设置try_files即可
location / {
root gmc-client;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
在location中设置try_files即可
location / {
root gmc-client;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
本文标题:Angular项目部署后路由失效404
本文链接:https://www.haomeiwen.com/subject/vnehhltx.html
网友评论