I have several domains installed on my droplet
site1.com and www.site1.com are both loading the same correct path
site2.com is loading the correct path but not www.site2.com which is loading the default path (from site1.com)
In my httpd-vhosts.conf I have
CustomLog "/var/www/site1.com/requests.log" combined
CustomLog "/var/www/site2.com/requests.log" combined
/etc/hosts has the subdomains too
I have this CNAME for both sites: www CNAME @
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.