vue-router mode 'history' 模式 nginx配置

server {

                listen      80;

                server_name  localhost;

                index  index.html index.htm;

                root /xxx/xxx;

                location / {

                        try_files $uri $uri/ /index.html =404;

                }

}

  

posted @ 2020-01-09 16:44  zaijinyang  阅读(1300)  评论(0编辑  收藏  举报