Nginx is throwing an 403 Forbidden on Static Files

Try specifying a user at the top of your nginx.conf, above the server section.

user www-data;

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.


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.