search

Home  >  Q&A  >  body text

Permission issues regarding nginx in centos7

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

天蓬老师天蓬老师2752 days ago637

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 17:27:17

    user worker;
    

    reply
    0
  • Cancelreply