I don’t know how this eluded me for so long… I remember breaking MAMP a number of years ago by editing the hosts file on my Mac, and I think I have been afraid to edit that file ever since.
Tonight I needed to test out a domain before changing the dns. I have the new site ready to roll – an add-on domain created in cPanel at a specific ip. (Basically, I have mydomain.com ready to roll at an ip address of 22.214.171.124)
The secret sauce was to go into my hosts file and add a line that says: 126.96.36.199 mydomain.com www.mydomain.com
That’s it! Now when I go to mydomain.com in a web browser on my computer, it displays the new site! Pretty awesome!
More posts from themightymo.com
Yesterday I ran into an issue where I needed to convert .aiff files to .mp3. DBPowerAmp was recommended to me as a paid GUI tool. But I wanted something more lightweight, since this is a task I rarely need to do (most of the time, I’m already in Logic Pro, and exporting is simple there).…
I was about to send an email to a potential customer pointing them to our 5-star Google Reviews via our Google Business profile (e.g. the Google Map), hoping this added information about our customers’ past experiences might help me close a deal. But when I checked the Google Reviews link, it was down. And after…
Cloudways Off-Site Backup Pricing Calculator: The Ultimate Cost Guide