title: nginx | site is not available by accessing with www
body: <p>May be you can help me. I'm using nginx and ubunty and my site is not available by typing: <strong>www.example.com</strong>. And available as: <strong>example.com</strong>.</p>
  
  <pre><code>server {
      listen 80 default_server;
      listen [::]:80 default_server ipv6only=on;
  
      root /usr/share/nginx/html;
      index index.php index.html index.htm;
  
      # Make site accessible from http://localhost/
      server_name www.example.com example.com;
      ... 
  </code></pre>
  
  <p>Where is a problem? Thanks!</p>