title: setting up virtual hosts in ampps
body: <p>I am trying to create a virtual host in ammps under windows 8, the document root should be under an external hard drive F: directory this is my httpd.conf</p>
  
  <pre><code>&lt;VirtualHost 127.0.0.1:80&gt;
      &lt;Directory "{$path}/www"&gt;
          Options FollowSymLinks Indexes
          AllowOverride All
          Order deny,allow
          allow from All
      &lt;/Directory&gt;
      ServerName localhost
      ServerAlias localhost 127.0.0.1
      ScriptAlias /cgi-bin/ "{$path}/www/cgi-bin/"
      DocumentRoot "{$path}/www"
      ErrorLog "{$path}/apache/logs/error.log"
      CustomLog "{$path}/apache/logs/access.log" combined
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      &lt;Directory "F:/www"&gt;
          Options FollowSymLinks Indexes
          AllowOverride All
          Order deny,allow
          allow from All
      &lt;/Directory&gt;
      DocumentRoot "F:/www"
      ServerName site1.com
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>and this is my hosts file </p>
  
  <pre><code>127.0.0.1           site1.com
  127.0.0.1           site2.com
  127.0.0.1           site3.com
  127.0.0.1           site4.com
  127.0.0.1           site5.com
  </code></pre>
  
  <p>when I type site1.com , I get the default virtual server instead, what I am doing wrong ?  </p>