Question

Multiple domains with a default virtual host not working

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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