title: Cannot run Django app. ERR_CONNECTION_REFUSED
body: <h2>What I want to achieve</h2>
  
  <p>I want to run a Django app by AWS EC2, Nginx and Gunicorn.</p>
  
  <h2>The problem that is occurring</h2>
  
  <p>I started Nginx and Gunicorn successfully (that was checked by <code>systemctl status</code> and<code>ps ax | grep gunicorn</code>, respectively), but when I open <code>http://&lt;ElasticIP&gt;/</code> from chrome, I get the following error.</p>
  
  <pre><code>This site can’t be reached.
  &lt;ElasticIP&gt; refused to connect.
  
  Try:
  Checking the connection
  Checking the proxy and the firewall
  
  ERR_CONNECTION_REFUSED
  </code></pre>
  
  <p>My /etc/nginx/nginx.conf is as follows. Also, I have opened 80th port.</p>
  
  <pre><code>server {
          listen 80;
          server_name &lt;Elastic IP&gt;;
          root /usr/share/nginx/html;
  
          include /etc/nginx/default.d/*.conf;
  
          location /static {
            alias /usr/share/nginx/html/static;
          }
  
          location /media {
            alias /usr/share/nginx/html/media;
          }
  
          location / {
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-For $proxy_add_x _forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
  
            proxy_pass http://127.0.0.1:8000;
          }
  
  ...
  ...
      }
  </code></pre>
  
  <p>I would be grateful if you could help me out.</p>