title: Nginx, Ansible, and uWSGI with Flask App, Internal Server Error
body: <p>I have deployed my app on EC2 using the software in the title, but I am getting an Internal Server Error. <a href="http://mattupstate.com/python/devops/2012/08/07/flask-wsgi-application-deployment-with-ubuntu-ansible-nginx-supervisor-and-uwsgi.html" rel="nofollow">Here</a> is the tutorial I have been following. </p>
  
  <p>Here is the error log for me trying to get on the application via the browser:</p>
  
  <pre><code>2014/02/17 19:48:29 [error] 26513#0: *1 connect() to unix:/tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: localhost, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/tm    p/uwsgi.sock:", host: "ec2-xx-xxx-xx-xxx.compute-1.amazonaws.com"
  </code></pre>