iview-admin部署linux nginx报500错误的问题记录

遇到个新服务器部署iview-admin之后

在nginx配置文件有个user配置项

这里需要配置为root或者可以读取本地文件的用户

 

站点配置如下

server {
    listen 8090;
    server_name  localhost;

    location / {
        root   /root/web/dist;
        index  index.html index.htm;
        if (!-e $request_filename) {
            rewrite ^/(.*) /index.html last;
            break;
        }
    }
    
    error_log    logs/error_web.log    error;
}

 

posted @ 2019-09-01 21:52  塔斯丁狗  阅读(578)  评论(0编辑  收藏  举报