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
nginx 启动命令是在安装的根目录下运行 start nginx.exe
nginx.conf
location /{
root html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
重启是nginx.exe -s reload