title: Nginx not redirecting to path properly
body: <p>I have this nginx config</p>
  
  <pre><code>events {
      worker_connections  1024;
  }
  
  http {
  
  
      server {
          listen              443 ssl;
          server_name         192.168.52.89;
          ssl on;
          ssl_certificate     /path/config/certfile.crt;
          ssl_certificate_key /path/config/keyfile.key;
          ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  
          location /auth-foo {
              proxy_set_header        Host            $host;
              proxy_set_header        X-Real-IP       $remote_addr;
              proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
              proxy_pass_header       Set-Cookie;
              proxy_pass http://192.168.52.89:2085;
          }
  
          location / {
              proxy_set_header        Host            $host;
              proxy_set_header        X-Real-IP       $remote_addr;
              proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
              proxy_pass_header       Set-Cookie;
              proxy_pass http://192.168.51.90:3000;
          }
      }
  }
  </code></pre>
  
  <p>I've looked at this file several times and cross checked with resources online and somehow this still doesn't work well. I expect that when a request is made as: <code>192.168.52.89/auth-foo</code> nginx should push the request to <code>http://192.168.52.89:2085</code> but what I get is not found. Is there something I'm missing? </p>
  
  <p>Am I missing something important?</p>
  
  <p>Thank you.</p>