If you have multiple sites, there are a couple of ways to deal with them. You can create separate users and use
http://domain.tld/~user type urls, or create Virtual Hosts.
I fiddled with both options and got the latter one to work and like it so far.
I like separate sites/domains for different sections of my sites so I can refer to them with just the domain name, instead of domain/foldername. I have 3 installations of coppermine gallery alone to work with so it helps to treat them as separate sites.
So how does one go about using different domain names without purchasing them? Use the hosts file, and invent your own tld to prevent conflicts with existing ones. For example, I use
http://gallery.tt to refer to my gallery. Using a fake tld prevents conflicts when trying to visit domains that actually exist. So instead of using .com, use your initials (as long as it doesn't correspond to an existing tld, such as com, net, etc).
Check out instructions on how to find and edit the hosts file
here.
place lines such as the following:
127.0.0.1 gallery.tt
127.0.0.1 is the IP address that computers use to refer to themselves, aka localhost. The name of the domain, when entered in the addressbar, will be directed to the computer itself, where the files are.
If it's not obvious, one wouldn't want to use one's actual domain name and tld for testing locally since it would conflict when one wants to visit the actual site on LP's server.
In the Apache httpd.conf file, I have the following entry for the gallery site:
# gallery.tt
<VirtualHost *:80>
DocumentRoot "c:/wamp/websites/gallery"
ServerName gallery.tt
ErrorLog logs/errorgallery.log
CustomLog logs/accessgallery.log common
</VirtualHost>