Permission issues regarding nginx in centos7
天蓬老师
天蓬老师 2017-05-16 17:25:17
0
1
635

There is a user named worker in centos, so configure it in the configuration of nginx.conf

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

But after running, accessing 127.0.0.1/static/test.html still reports permission issues

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

How should nginx be configured

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
过去多啦不再A梦
user worker;
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template