<VirtualHost *:80> DocumentRoot "D:/projects/yourdirectry name" ServerName local.yourdomain.com<Directory "D:/projects/yourdirectry name"> Require all granted </Directory></VirtualHost>
Save the Apache configuration file.
for detailed info refer to this