title: Xampp Apache 2.4 VirtualHost not working
body: <p>I have xampp with apache 2.4 on windows 10.
  i have this configuration in my C:\xampp\apache\conf\extra\httpd-vhosts.conf</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
     DocumentRoot "C:/xampp/htdocs"
     ServerName localhost
     ServerAlias www.localhost
  &lt;/VirtualHost&gt;
  &lt;VirtualHost *:80&gt;
     DocumentRoot "C:/xampp/htdocs/site3/web"
     ServerName site3.localhost
     ServerAlias www.site3.localhost
  &lt;/VirtualHost&gt;
  &lt;VirtualHost *:80&gt;
     DocumentRoot "C:/xampp/htdocs/site2/web"
     ServerName site2.localhost
     ServerAlias www.site2.localhost  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I added in my hosts file:</p>
  
  <pre><code>127.0.0.1       site2.localhost 
  127.0.0.1       site3.localhost
  127.0.0.1       www.site2.localhost 
  127.0.0.1       www.site3.localhost
  </code></pre>
  
  <p>When i browse <a href="http://site2.localhost" rel="nofollow noreferrer">http://site2.localhost</a> i see xampp root index. 
  When i browse <a href="http://site3.localhost" rel="nofollow noreferrer">http://site3.localhost</a> i see again xampp root index.Same with www.site2.localhost...</p>
  
  <p>What am I doing wrong?</p>