Report this

What is the reason for this report?

Multiple domains with a default virtual host not working

Posted on January 19, 2014

I followed the following tutorial https://www.digitalocean.com/community/questions/multiple-domains-on-the-same-droplet

And for the most part it works, I have a domain I’m playing with at the moment.

  • 1 that only the subdomain should point to a rails app. (rails.site2.com)
  • the domain (site2.com) should go to the default virtual host which I set up as a parked domain holder

I’ve linked all virtual configs can you guys please tell me what I’m doing wrong

rails.site.com config - http://pastebin.com/pfEV4qvV default config - http://pastebin.com/NBWUzxz5 my httpd.conf - http://pastebin.com/0iDzjZBt my apache2 config - http://pastebin.com/erFAA5y8



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.

<blockquote>And for the most part it works</blockquote> <br>What part isn’t working?

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.