Open C:\Windows\System32\drivers\etc\hosts
Add the below line at the end of the file.
127.0.0.1      wpdev.go
Restart apache server and visit the site URL.
That’s all is needed to set up a virtual host.
Replace wpdev.go with your preferable domain name, here wpdev.go is a domain name