title: Virtual Hosts - all redirect to the WAMP localhost 'home' page
body: <p>I've setup the latest version of WAMP on my Windows 8 PC - I cannot seem to get multiple virtual hosts to work, every local URL I load will show the WAMP homepage.</p>
  
  <p>Can anyone explain what I am doing wrong?</p>
  
  <pre><code>// My hosts file
  127.0.0.1   localhost   
  127.0.0.1   client1.localhost
  127.0.0.1   client2.localhost
  </code></pre>
  
  <p>I have two folders in my WAMP directory, 'client1' and 'client2' obviously each folder will relate the the client1 &amp; client2 in the host file above.</p>
  
  <pre><code>// My virtual hosts file
  &lt;VirtualHost *:80&gt;
    ServerName localhost
    DocumentRoot "C:\wamp\www"
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
    ServerName client1.localhost
    DocumentRoot "C:\wamp\www\client1"
  &lt;Directory "C:\wamp\www\client1"&gt;
    allow from all
    order allow,deny
    AllowOverride All
  &lt;/Directory&gt;
   DirectoryIndex index.html index.php
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
    ServerName client2.localhost
    DocumentRoot "C:\wamp\www\client2"
  &lt;Directory "C:\wamp\www\client2"&gt;
    allow from all
    order allow,deny
    AllowOverride All
  &lt;/Directory&gt;
    DirectoryIndex index.html index.php
   &lt;/VirtualHost&gt;
  </code></pre>