title: connect() failed (111: Connection refused) Error triying to proxy pass from nginx to local hosted service
body: <p>I have a dockerised nginx server that i am trying to proxy pass to a service. I wanted to test the connectivity locally. Have both the service containers running locally on different ports</p>
  <p>Nginx server: 127.0.0.1:8080 and service to proxy pass hosted on : 127.0.0.1:50204</p>
  <p>Trying to proxy pass nginx to the local host in config as below</p>
  <pre><code>location = /health/live {
          proxy_pass http://127.0.0.1:50204/health/live;
          proxy_pass_request_body on;
      }
  </code></pre>
  <p>Please advice me whats wrong here. Can nginx really proxy pass to localhost?</p>