美文网首页
NGINX VUE配置

NGINX VUE配置

作者: 搬砖_工程师 | 来源:发表于2018-11-13 08:21 被阅读6次

server {
listen 80;
server_name xxxx;
access_log /data/wwwlogs/xxxx_nginx.log combined;
index index.html index.htm index.php;
root /data/wwwroot/xxxx;

include /usr/local/nginx/conf/rewrite/none.conf;

error_page 404 /404.html;

error_page 502 /502.html;

    location / {
        try_files $uri $uri/ @router;
        index  index.html index.htm;
    }

    location @router {
        rewrite ^.*$ /index.html last;
    }

}

相关文章

网友评论

      本文标题:NGINX VUE配置

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