title: Nginx proxy pass directive: Invalid port in upstream error
body: <p>I am doing load balancing with Nginx. Here is my config</p>
  <pre><code>upstream web_backend {
          least_conn;
          server localhost:8001  max_fails=3 fail_timeout=60s;
          server localhost:8002  max_fails=3 fail_timeout=60s;
  }
  
  
  server {
      listen 8545;
  
      server_name _;
  
      location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://web_backend;
      }
  }
  
  
  server {
          listen 8001;
          server_name localhost;
          location / {
          proxy_pass https://some_other_url/v3/cxnmcdinwrtyf93vcwdiyfx8q6xqwxv9qg7c93fgcb;
  
          }
  }
  
  server {
          listen 8002;
          server_name localhost;
          location / {
          proxy_pass 'https://chipdunk-dude:gorgeous-serpents-clubbed-orphans@nd-657-555-555-777.dogify.com';
          }
  }
  </code></pre>
  <p>as you can see the url at port 8002 is weird (dont even know what this kind of urls are called)
  because it has &quot;:&quot; in the url, Nginx gives me this error</p>
  <pre><code>nginx: [emerg] invalid port in upstream &quot;chipdunk-dude:gorgeous-serpents-clubbed-orphans@nd-657-555-555-777.dogify.com&quot; in /etc/nginx/sites-enabled/default:60
  </code></pre>
  <p>The url at port 8001 works fine.</p>