title: Configuring multiple sites in apache
body: <p>I use Win10, Apache2.4 and PHP7.4. I created 2 test sites inside Apache24\htdocs - Test.com and Test2.com, both containing simple index.php files. Here are exceptions from config files:</p>
  <p>hosts:</p>
  <pre><code>    127.0.0.1 Test.com  www.Test.com
      127.0.0.1 Test2.com www.Test2.com
  </code></pre>
  <p>httpd.conf:</p>
  <pre><code>    # PHP7 module
      PHPIniDir &quot;C:/Dev/PHP-7.4.24&quot;
      LoadModule php7_module &quot;C:/Dev/PHP-7.4.24/php7apache2_4.dll&quot;
      AddType application/x-httpd-php .php
  </code></pre>
  <p>httpd-vhosts.conf:</p>
  <pre><code>    &lt;VirtualHost _default_:80&gt;
          DocumentRoot &quot;${SRVROOT}/htdocs&quot;
          ServerName www.example.com:80
      &lt;/VirtualHost&gt;
  
      &lt;VirtualHost *:80&gt;
          DocumentRoot &quot;${SRVROOT}/htdocs/Test.com&quot;
          ServerName Test.com
          ServerAlias www.Test.com
      &lt;/VirtualHost&gt;
  
      &lt;VirtualHost *:80&gt;
          DocumentRoot &quot;${SRVROOT}/htdocs/Test2.com&quot;
          ServerName Test2.com
          ServerAlias www.Test2.com
      &lt;/VirtualHost&gt;
  </code></pre>
  <p>When loading both test.com and test2.com, browser shows folder index of htdocs. Only clicking on either index shows actual site, and browser address field become, for example, <code>http://test.com/Test.com/</code>. How to configure apache to show site from address like <code>test.com</code>?</p>