Report this

What is the reason for this report?

Virtual and 'non-virtual' hosts on the same droplet?

Posted on January 27, 2015

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/public_html and /var/www/monkeyfactory/public_html. 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.

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.