在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應該如何配置