Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
One droplet, 2 domains, but second domain loads to the first domain. What did I do wrong?
I set up a droplet using the Wordpress one click install and configured the virtual host for logancollman.com, which works great! Now the problem lies with me adding a second domain, hempyhq.com. I followed the same documentation to add the virtual host for this second domain, but somehow when visiting hempyhq.com (http://, www, etc), it simply loads logancollman.com instead of hempyhq.com’s index file.
This is the document I’ve followed:
I have two virtual host conf files, one for each domain, with the same configuration on each (other than the domain used).
Any idea where I could have messed this up?
Just found that if I go directly to https://hempyhq.com/index.php that it loads the correct domain, but the content of logancollman.com.
Also, I noticed that the path to index.php that the above URL loads is actually the index in logancollman.com, given that the index located at hempyhq.com is an index.html.
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.×