Código
(Agregar al final)
Si se desea importar desde un archivo externo
Include conf/vhosts/*.conf
Directorio Virtual (Alias)
(XAMPP)/apache/conf/httpd.conf
<IfModule alias_module>
Alias /git "D:/git/php"
</IfModule>
<Directory "D:/git/php">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride all
Order allow,deny
Allow from all
Require all granted
</Directory>
Dominio Virtual
Editar
%WINDIR%\System32\Drivers\Etc\host con un editor de texto, agregando la línea al final
127.0.0.1 localhost.prod
(XAMPP)/apache/conf/httpd.conf
<VirtualHost localhost.prod>
ServerAdmin webmaster@localhost.prod
DocumentRoot "D:/dev/produccion"
</VirtualHost>
<Directory "D:/dev/produccion">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride all
Order allow,deny
Allow from all
Require all granted
</Directory>
Referencia
https://stackoverflow.com/a/21566403/3930332