El mio lo tengo así y me funciona
Código Apache:
Ver originalNameVirtualHost *:80
<VirtualHost 127.0.0.1>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
ServerAlias localhost
</VirtualHost>
NameVirtualHost foo
<VirtualHost 127.0.0.1:80>
DocumentRoot "C:/foo/public"
ServerName foo
ServerAlias foo
<Directory "C:/foo/public">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
NameVirtualHost bar
<VirtualHost 127.0.0.1:80>
DocumentRoot "C:/bar/public"
ServerName bar
ServerAlias bar
<Directory "C:/bar/public">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
NameVirtualHost test
<VirtualHost 127.0.0.1:80>
DocumentRoot "C:/test/public"
ServerName test
ServerAlias test
<Directory "C:/test/public">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
En el archivo C:\WINDOWS\System32\drivers\etc\hosts
Código hosts:
Ver original127.0.0.1 localhost
127.0.0.1 foo
127.0.0.1 bar
127.0.0.1 test