I had two domains pointing to my droplet.
Both were set up under the DNS tab and both pointed to the IP associated with my droplet.
On site worked the other resolved to some Bluehost landing page that had nothing to do with my site.
I then switched the IP on one of the sites under the DNS tab. After a little bit both sites worked but I figured switching the domain was a bad idea and would likely lead to SSH issues. I was right.
So after some reading I concluded that it was not necessary to have switched the IP so I switched it back.
No the site that was originally not working works but the other site (the one whose IP I switched, then switched back) points to someones site in Chile...not my site.
Am I missing something or just impatient?
I have double checked the Apache '.conf' files associated with each site. They both point to the proper directory. I have reloaded the server and restarted NSCD. I ran a2ensite on both.
[side note but related]: Where should I be SSHing to? root@DropletIP? email@example.com? firstname.lastname@example.org? Does it vary based on what I'm trying to do?
I'm thinking about starting over since I learn more every time I do. But eventually I need to achieve a working stable environment.
Thanks in advance for any help.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.