title: Multiple vhosts with XAMPP 3.2.1
body: <p>I can't get a second VirtalHost to be recognized. A couple of years ago I had it working, but somewhere along the upgrade path it broke.</p>
  
  <p><code>localhost</code> is recognized. <code>dev</code> is not. I am using XAMPP v3.2.1 on Windows 7. Typing in <code>dev</code> into the browser sends me to my browser's search engine. httpd-vhosts.conf and hosts file are set up as below and I've included a dump from C:\xampp\apache\bin\httpd -S. Any help would be greatly appreciated.</p>
  
  <p>Note: if I type in explicit path to the <code>index.php</code> file in the <code>dev</code> directory, it will not run as a php file, but it will just list out the contents.</p>
  
  <p>Also: In my access.log, I get the following: </p>
  
  <pre><code>127.0.0.1 - - [04/Jul/2015:09:48:12 -0700] "GET /css/ms.js HTTP/1.1" 304 - "http://localhost/dev" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
  </code></pre>
  
  <p>My C:\xampp\apache\conf\extra\httpd-vhosts.conf</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot "D:/Website/root"
      ServerName localhost
  
      &lt;Directory "D:/Website/root"&gt;
          Options Indexes FollowSymLinks Includes ExecCGI
          AllowOverride All
          Order deny,allow
          deny from all
          Allow from localhost
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      DocumentRoot "D:/Website/dev"
      ServerName dev
  
      &lt;Directory "D:/Website/dev"&gt;
          Options Indexes FollowSymLinks Includes ExecCGI
          AllowOverride All
          Order deny,allow
          deny from all
          Allow from localhost
          Require all granted
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>My c:\windows\system32\drivers\etc</p>
  
  <pre><code># localhost name resolution is handled within DNS itself.
      127.0.0.1       localhost
      127.0.0.1       dev
  </code></pre>
  
  <p>C:>C:\xampp\apache\bin\httpd -S</p>
  
  <pre><code>VirtualHost configuration: *:80                is a NameVirtualHost
           default server localhost (C:/xampp/apache/conf/extra/httpd-vhosts.conf:44) 
           port 80 namevhost localhost (C:/xampp/apache/conf/extra/httpd-vhosts.conf:44)
           port 80 namevhost dev (C:/xampp/apache/conf/extra/httpd-vhosts.conf:60)
  ServerRoot: "C:/xampp/apache"
  Main DocumentRoot: "D:/Website/root"
  Main ErrorLog: "C:/xampp/apache/logs/error.log"
  Mutex rewrite-map: using_defaults
  Mutex ssl-stapling: using_defaults
  Mutex proxy: using_defaults
  Mutex ssl-cache: using_defaults
  Mutex default: dir="C:/xampp/apache/logs/" mechanism=default
  PidFile: "C:/xampp/apache/logs/httpd.pid"
  Define: DUMP_VHOSTS
  Define: DUMP_RUN_CFG
  </code></pre>