添加如下配置:
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;
}
}
添加如下配置:
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;
}
}
本文标题:Nginx配置 - Vue项目(history)页面刷新404解
本文链接:https://www.haomeiwen.com/subject/pptfphtx.html
网友评论