title: nginx server_name inside stream block possible?
body: <p>Current setup as follows:</p>
  
  <pre><code>stream {
      server {
          listen 9987 udp;
  
          server_name  subdomain.EXAMPLE.com; # this line is resulting in an error
  
          proxy_pass localhost:9987;
          proxy_timeout 1s;
          proxy_responses 1;
          error_log logs/dns.log;
      }
  }
  </code></pre>
  
  <p><strong>server_name  subdomain.EXAMPLE.com;</strong></p>
  
  <p>Is this possible?</p>
  
  <pre><code>$nginx -t
  
  $nginx: [emerg] "server_name" directive is not allowed here in /etc/nginx/nginx.conf:15
  </code></pre>
  
  <p>Works just fine without server_name, but I'd like to use a sub-domain if possible. (I am using a build with <em>--with-stream</em>, thats not my issue.)</p>