Report this

What is the reason for this report?

DNS settings when running virtual hosts on nginx?

Posted on December 11, 2013

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



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Before adding the wildcard DNS record, make sure everything works as it’s supposed to.

Please pastebin your virtualhost config files.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.