在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应该如何配置