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

后端 未结 16 1879
梦谈多话
梦谈多话 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:48

    Nginx need to have +x access on all directories leading to the site's root directory.

    Ensure you have +x on all of the directories in the path leading to the site's root. For example, if the site root is /home/username/siteroot:

    chmod +x /home/
    chmod +x /home/username
    chmod +x /home/username/siteroot
    

提交回复
热议问题