location / {
root D:\xxx;
index index.html index.htm;
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
win10 nginx刷新后404
最新推荐文章于 2023-11-17 02:00:00 发布
location / {
root D:\xxx;
index index.html index.htm;
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}