美文网首页
vue路由 mode 'history' 模式 nginx配置

vue路由 mode 'history' 模式 nginx配置

作者: Jeff_Tsui | 来源:发表于2018-05-17 15:47 被阅读0次

server {

                listen      80;

                server_name  localhost;

                index  index.html index.htm;

                root /xxx/xxx;

                location / {

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

                }

}

相关文章

网友评论

      本文标题:vue路由 mode 'history' 模式 nginx配置

      本文链接:https://www.haomeiwen.com/subject/btgbdftx.html