title: NameVirtualHost causes 404 for localhost
body: <p>I've managed to setup several VirtualHosts by enabling NameVirtualHost. Here's the top part of my vhosts.conf</p>
  
  <pre><code>NameVirtualHost *:80
  
  &lt;VirtualHost *:80&gt;
    ServerName mysite.local
    ...
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The problem is when I visit <code>http://localhost</code> I get the default "It works!". If I go to <code>http://127.0.0.1/</code> it defaults to <code>http://mysite.local</code></p>
  
  <p>I understand from the Apache Docs that why it defaults to mysite.local (matching the first VirtualHost). But I used to be able to go to <code>http://localhost/phpmyadmin/</code>.</p>
  
  <p>How can I get this back? Do I need to make my first VirtualHost localhost? That seems wrong...</p>
  
  <p>Running apache 2.2.15 on Mac OS X (10.6.6).</p>
  
  <h3>UPDATE</h3>
  
  <p>If I comment out the following lines from my hosts file, both localhost and 127.0.0.1 go to the same place. I verified in the access log that it was indeed using ::1.</p>
  
  <pre><code>::1             localhost
  fe80::1%lo0     localhost
  </code></pre>
  
  <p>So I suppose that handles the first issue, provided this is okay? But how can I get localhost to go to my default DocumentRoot?</p>