Nginx: stat() failed (13: permission denied)

后端 未结 16 1844
梦谈多话
梦谈多话 2020-12-04 05:04

I am using the default config while adding the specific directory with nginx installed on my ubuntu 12.04 machine.

server {
        #listen   80; ## listen          


        
16条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 05:46

    You may have Security-Enhanced Linux running, so add rule for that. I had permission 13 errors, even though permissions were set and user existed..

    chcon -Rt httpd_sys_content_t /username/test/static

提交回复
热议问题