关于#nginx#的问题:nginx 配置静态页面访问不进去.急

nginx 配置静态页面访问不进去
这个是文件路径

img

这个是我nginx.conf文件的配置

worker_processes  1;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;
    

    server{
            listen 80;
            server_name yfbj.heli.com;
            

            location /{
                root html/dist;
                index index.html;
                
            }
    }
}

如果是404,root 目录不要用相对路径,用绝对路径