Nginx is throwing an 403 Forbidden on Static Files

后端 未结 6 1749
野性不改
野性不改 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:37

    It appears the user nginx is running as (nginx?) is missing privileges to read the local file /home/ubuntu/virtualenv/myapp/myapp/homelaunch/static/img/templated/home/img.png. You probably wanna check file permissions as well as permissions on the directories in the hierarchy.

提交回复
热议问题