Nginx配置 - Vue项目(history)页面刷新404解
2020-04-02 本文已影响0人
MrLimLee
添加如下配置:
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;
}
}