title: Nginx (13: Permission denied) while connecting to upstream
body: <p>I'm deploying my Djano application on a VPS and I'm following the steps in the below link to configure my app with Gunicorn and Nginx.</p>
  <p><a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04" rel="noreferrer">How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 16.04
  </a></p>
  <p>Everything went well with the tutorial (gunicorn and nginx are running) but the issue is that when Im' visiting the VPS through the static IP its showing a white screen that is always reloading.</p>
  <p>After checking nginx log I found the following:</p>
  <blockquote>
  <p>(13: Permission denied) while connecting to upstream, client: &lt;client_ip&gt;, server: &lt;server_ip&gt;, request: &quot;GET / HTTP/1.1, upstream: &quot;http://unix:/root/myproject/myproject.sock:/&quot;, host: &quot;&lt;server_ip&gt;&quot;, referrer: &quot;http://&lt;server_ip&gt;/&quot;</p>
  </blockquote>