Configuring a Local Domain with vhosts.conf for WordPress on Windows
I'll show you how to configure a custom local domain — such as mysite.local — by editing the Apache vhosts.conf file and the Windows hosts file, so your local development environment is indistinguishable from a real live site.