title: Multiple virtual host in wamp
body: <p>I am trying to create multiple virtual host in wamp, but when i add second virtual host it shows wamp homepage.</p>
  
  <p>Here is my hosts file:</p>
  
  <pre><code>#localhost name resolution is handled within DNS itself.
  #127.0.0.1       localhost
  #::1             localhost
  127.0.0.1       localhost
  127.0.0.1       www.site1.com
  127.0.0.1       www.aksharen.com
  ::localhost
  ::www.site1.com
  ::www.aksharen.com
  </code></pre>
  
  <p>Here is my httpd-vhosts.conf file:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot "C:/wamp/www"
      ServerName localhost        
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost 127.0.0.1&gt;
      DocumentRoot "C:/websites/www.site1.com/public"
      ServerName "www.site1.com"
      &lt;Directory C:/websites/www.site1.com&gt;
          DirectoryIndex index.php
          Options Indexes FollowSymLinks MultiViews
          AllowOverride All
          Require local
      &lt;/Directory&gt;
      SetEnv APPLICATION_ENV "development"
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost 127.0.0.1&gt;
      DocumentRoot "C:/websites/www.aksharen.com/public"
      ServerName "www.aksharen.com"
      &lt;Directory C:/websites/www.aksharen.com&gt;
          DirectoryIndex index.php
          Options Indexes FollowSymLinks MultiViews
          AllowOverride All
          Require local
      &lt;/Directory&gt;
      SetEnv APPLICATION_ENV "development"
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>my first site i.e. www.site1.com is working fine. </p>