nginx解决前端的history报错

nginx 启动命令是在安装的根目录下运行 start nginx.exe

nginx.conf
location /{

root html;
index index.html index.htm;
try_files $uri $uri/ /index.html;

}

重启是nginx.exe -s reload

posted @ 2021-04-13 16:40  凌兮  阅读(213)  评论(0)    收藏  举报