title: nginx: [emerg] "stream" directive is not allowed here
body: <p>i'm try to setup load balancer with nginx to keep Client IP at backends node by create file <code>/etc/nginx/sites-available/test.conf</code> and symlink for it</p>
  <pre><code>stream {
      upstream backend_servers {
          server http://server1.com;
          server http://server2.com;
      }
      
      server {
          listen     80;
          proxy_set_header X-Forwarded-For $remote_addr;
          proxy_pass backend_servers;
      }
  }
  </code></pre>
  <p>But when i run <code>nginx -t</code> to check, this error appear.
  can anyone tell me what to do now? Thanks!</p>