centos7中关于nginx的权限问题


在centos中有一个user名为worker,所以在nginx.conf的配置中配置


 user worker;
server{
    location: /static/{
        root /home/worker;
    }
}

可是运行后,访问127.0.0.1/static/test.html,依然报错权限问题


 2015/02/19 01:45:42 [error] 3634#0: *open()"/home/worker/static/test.html" failed (13: Permission denied),

nginx应该如何配置

nginx centos7

十八楼既牛牛 9 years, 10 months ago

 user worker;

天云残D月 answered 9 years, 10 months ago

Your Answer