Question

DNS settings when running virtual hosts on nginx?

Posted December 11, 2013 4k 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

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.

×
2 answers
Before adding the wildcard DNS record, make sure everything works as it's supposed to.
Please pastebin your virtualhost config files.
Submit an Answer