title: nginx invalid number of arguments in "proxy_pass" directive
body: <pre><code>nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /etc/nginx/sites-enabled/django_direct:12
  </code></pre>
  
  <p>My nginx conf  file:</p>
  
  <pre><code>server {
      listen 80;
      server_name 94.154.13.214;
  
      location = /favicon.ico { access_log off; log_not_found off; }
      location /static/ {
          root /root/django_direct/main_app/;
      }
  
      location / {
          include proxy_params;
          proxy_pass unix: /root/django_direct/django_direct.sock;
      }
  }
  </code></pre>
  
  <p>What do I do?
  <strong>UPD:</strong>
  I have changed file like this:</p>
  
  <pre><code>proxy_pass http://unix:/root/django_direct/django_direct.sock;
  </code></pre>
  
  <p>But didn't help, I've restarted nginx and now
  I am getting now a 502 Bad Gateway error.</p>