To do this, go to:
It will look like this:
You need to update this file so your browser knows to look locally for the domain. Add a line for your domain name...
Next you need to tell apache about your new domain. Go to /etc/apache2/sites-available/ and create a file for your new domain. Since my new domain is literally "domain" that's what I will call my file, with no file extension. Within that file I'll put this....
Once you've got this setup you're good to go. All you need to do is restart apache...
Now I can access this local domain by simply typing http://domain/ and it won't effect the users browsing my site.