title: nginx would not react to wildcard subdomains (*.domain)
body: <p>i have have trouble with nginx wildcard sub-domains.</p>
  
  <p>I've bought a domain from godaddy. then create host zone in amazone and then created a record set for A(A-IPv4) - for both www.domain.com / domain.com</p>
  
  <p>and in nginx.conf i have the very basic configuration and 1 server file that look like this:</p>
  
  <pre><code>server {
      listen 80 default_server;
      listen [::]:80 default_server ipv6only=on;
  
  
      access_log   /var/log/nginx/domain.com.access.log;
      error_log    /var/log/nginx/domain.com.error.log;
  
      # i tried the following for server name: domain.com *.domain.com/*.domain.com/.domain.com
      server_name .domain.com;
      root /usr/share/nginx/html/test;
      index index.html;
  </code></pre>
  
  <p>}</p>
  
  <p>when i visit subdomain.domain.com i get Firefox can't find the server at subdomain.domain.com</p>
  
  <p>looking at the access log files nothing got logged it's completely empty.</p>
  
  <p>Thanks</p>