/home

Working VirtualHost on localhost with Apache on Windows

C:\Windows\System32\drivers\etc\hosts

add the following line for each of your additional vhost:

127.0.0.1	myvhost.local

apache/conf/extra/httpd-vhosts.conf

NameVirtualHost *
<VirtualHost *>
    DocumentRoot "C:\xampp\htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost *>
    DocumentRoot "C:/Users/xxx/any/path/to/your/www/"
    ServerName myvhost.local
    
    <Directory "C:/Users/xxx/any/path/to/your/www/">
        AllowOverride All              # Allows to read local .htaccess
        Options FollowSymLinks

        Order allow,deny
        Allow from all
        Require all granted
    </Directory>
</VirtualHost>