Question
Virtual and 'non-virtual' hosts on the same droplet?
I’ve read through the directions on setting up virtual hosts on a Ubuntu-provisioned droplet a couple times, and then worked through them step by step a couple times (https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts).
What I’m trying to set up is a “non-virtual” host at /var/www, with two virtual hosts inside at /var/www/infogristle/publichtml and /var/www/monkeyfactory/publichtml. The non-virtual host at http://trigger-treat.com works fine. Attempting to reach the virtual hosts results in the page for the non-virtual host to appear instead.
Do I need to convert my non-virtual host into a virtual host for this to work, or can you mix and match?
Thanks in advance.
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.
×
Can you clarify what you mean by a “non-virtual host”? Since your droplet only has a single IP address the only way to host more than one site is via domain based virtual hosts.