title: XAMPP VirtualHost Redirects to htdocs
body: <p>I have reviewed a number of answers on this topic but non of them helped. I am trying to set multiple virtual hosts in XAMPP but once I type server alias into browser it redirects me to XAMPP/dashboard. Could you please take a look the code below and share your thought. Thanks in advance.</p>
  
  <p>httpd-vhosts.conf file</p>
  
  <pre><code>NameVirtualHost *:80
  &lt;VirtualHost *:80&gt;
    DocumentRoot "C:/xampp/htdocs/"
    ServerName localhost
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost test*:80&gt;
      DocumentRoot "E:/Drive/Dev/test"
      ServerName test
      ServerAlias test
      &lt;Directory "E:/Drive/Dev/test"&gt;
          Options Indexes FollowSymLinks
          AllowOverride All
          Order allow,deny
          Allow from all
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>httpd.conf file</p>
  
  <pre><code># Virtual hosts
  Include conf/extra/httpd-vhosts.conf
  
  DocumentRoot "C:/xampp/htdocs/"
  &lt;Directory "C:/xampp/htdocs/"&gt;
      Options Indexes FollowSymLinks Includes ExecCGI
      AllowOverride All
      Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>hosts file</p>
  
  <pre><code>127.0.0.1    test
  </code></pre>