NGINX VUE配置

2018-11-13  本文已影响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;
    }

}

上一篇 下一篇

猜你喜欢

热点阅读