server {
listen 80;
server_name www.xxx.com;
charset utf-8;
access_log xxx/host.access.log;
location / {
root xxx/dist;
try_files $uri $uri/ /index.html;
}
}
原文:https://www.cnblogs.com/cina33blogs/p/9010912.html