title: nginx: [warn] conflicting server name "example.com" on 0.0.0.0:80, ignored
body: <p>When I'm trying to restart nginx, I'm getting the following error</p>
  <pre><code>nginx: [warn] conflicting server name &quot;example.io&quot; on 0.0.0.0:80, ignored
  </code></pre>
  <p>I used my deploy scripts, to do deploying for 2 domains. For first it works fine, but for second, it gives error.</p>
  <p>Here is my nginx.conf file</p>
  <pre><code>#
  worker_processes 2;
  
  #
  user nginx nginx;
  
  #
  pid /opt/nginx/pids/nginx.pid;
  error_log /opt/nginx/logs/error.log;
  
  #
  events {
      worker_connections  4096;
  }
  
  #
  http {
      #
      log_format full_log '$remote_addr - $remote_user $request_time $upstream_response_time '
                          '[$time_local] &quot;$request&quot; $status $body_bytes_sent $request_body &quot;$http_referer&quot; '
                          '&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;';
  
      #
      access_log  /opt/nginx/logs/access.log;
  
      ssl on;
      ssl_certificate /opt/nginx/cert/example.crt;
      ssl_certificate_key /opt/nginx/cert/example.key;
  
      #
      include /opt/nginx/conf/vhosts/*.conf;
  
      # Deny access to any other host
      server {
          server_name example.io;  #default
          return 444;
      }
  }
  </code></pre>