DNS settings when running virtual hosts on nginx?

December 11, 2013 1.8k views
Hello I am trying to run 2 websites on one droplet. I figured it out for the most part following the guides until i tried to add cname records for WWW and * on the 2nd domain name. When i typed in www.domain2.com it went to the first domain. Any idea what lines i have to change in the setup files or in the dns hosting panel? thanks
2 Answers
Before adding the wildcard DNS record, make sure everything works as it's supposed to.
Please pastebin your virtualhost config files.
Have another answer? Share your knowledge.