James' Blog

James’ personal blog

Accessing domain name but pointing it to your local machine

There’s a simple trick I used to point a www.SomebodysDomain.com to my local machine since I’m doing development. He had hardcoded his domain name into his application which causes problems for when you don’t want to test on the production server.

I just edited my hosts file and added the line in /etc/hosts (OSX)

127.0.0.1 www.SomebodysDomain.com

Posted 1 year, 4 months ago at 12:18 am.

Add a comment