title: Running Flask app with uwsgi and nginx
body: <p>I am following the digital ocean tutorial for configuring nginx uwsgi to serve flask application.
  <a href="https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-centos-7" rel="nofollow">Digital Ocean Tuttorial link </a>
  I have made the service for starting my application.But when i run it, i get the following status </p>
  
  <p><strong>Process: 726 ExecStart=/home/user/app/my_project/venv/bin/uwsgi --ini my_project.ini (code=exited, status=217/USER)</strong></p>
  
  <p>myproject.ini contains configuration for running uwsgi</p>
  
  <pre><code>[uwsgi]
  module = wsgi
  
  master = true
  processes = 5
  
  socket = myproject.sock
  chmod-socket = 660
  vacuum = true
  
  die-on-term = true
  </code></pre>
  
  <p>I am able to run app with uswgi on port 8000 but not able to redirect requests from nginx to uwsgi.</p>
  
  <p>Configuration for nginx is:</p>
  
  <pre><code>server {
  listen 80;
      server_name my_ip;
  
      location / {
              include uwsgi_params;
              uwsgi_pass unix:/home/user/app/my_project/myproject.sock;
      }
  }
  </code></pre>