Nginx is throwing an 403 Forbidden on Static Files

后端 未结 6 1698
野性不改
野性不改 2020-12-14 19:10

I have a django app, python 2.7 with gunicorn and nginx.

Nginx is throwing a 403 Forbidden Error, if I try to view anything in my static fo

6条回答
  •  时光说笑
    2020-12-14 19:15

    MacOs El Capitan: At the top of nginx.conf write user username group_name

    My user name is Kamil so i write:

    user Kamil staff;
    

    (word 'staff' is very important in macOS). This do the trick. After that you don't need to change any permission in your project folder and files.

提交回复
热议问题