Nginx配置 - Vue项目(history)页面刷新404解决方案
添加如下配置:
try_files $uri $uri/ /index.html;
server {
listen 80 ;
server_name ***.abc.com;
location / {
root /opt/ttjr;
index index.html;
try_files $uri $uri/ /index.html;
}
}