Once you've decided, open C:\Windows\System32\drivers\etc and open the hosts file.
It should look like this when opened:
127.0.0.1 localhost ::1 localhost
Add a new line
127.0.0.1 localhost 127.0.0.1 domain ::1 localhost
Replace "domain" with "domain.loc" if you want.
Next you're going to need to locate your Apache installation. In WAMP, you're going to need to open C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf and add the line:
ServerAdmin webmaster@localhost DocumentRoot "c:/wamp/www/domain" ServerName domain ErrorLog "logs/domain.log" CustomLog "logs/domain.log" common Options Indexes FollowSymLinks AllowOverride all Order Allow,Deny Allow from all Allow from 127.0.0.1
AFTER
NameVirtualHost *:80DocumentRoot "c:/wamp/www" ServerName localhost
If you're using .loc, all you should have to do is add .loc to the ServerName, NOT to the paths defining the location to load.