title: apache 000-default virtual host
body: <p>I see that there's the 000-default virtual host and I left it.  I created a new file and link for mysite.com and it works, but not how I want it to.  I'm wondering, does anyone know if I need to delete or if I shouldn't delete the 000-default vh?</p>
  
  <p>For some reason if to go to <a href="http://mysite.com" rel="noreferrer">http://mysite.com</a> it takes me to the 000-default site, but if I go to <a href="http://www.mysite.com" rel="noreferrer">http://www.mysite.com</a> it takes me to the correct place.  Why is there a difference?</p>
  
  <p>This is mysite.com vh file:</p>
  
  <pre><code>#NameVirtualHost *
  &lt;VirtualHost *:80&gt;
          ServerAdmin nick@mysite.com
          ServerName mysite.com
          ServerAlias www.mysite.com *.mysite.com
          DocumentRoot /home/nick/www/mysite.com
  
          ErrorLog /var/log/apache2/mysite.com/error.log
  
          # Possible values include: debug, info, notice, warn, error, crit,
          # alert, emerg.
          LogLevel info
  
          CustomLog /var/log/apache2/mysite.com/access.log common
          ServerSignature On
  
  &lt;/VirtualHost&gt;
  </code></pre>