Subdomain VHost File. It works, but not for the subdomain

Posted July 7, 2018 773 views
ApacheNetworkingUbuntu 18.04

I’ve followed countless questions and tutorials on DigitalOcean and other sites on creating a vhost file. I’ve done it, and I can get my site, to display a page. However, does not. I copied the Vhost file from and changed it for Yet doesn’t show.

I even went and disabled’s vhost and now website is showing up when I visit So, I know the vhost file works. I know there are zero issues in permissions. So what gives?

I’ve got the subdomain as an AName in DO’s preferences. Pointing to the same droplet (I only have the one droplet). It’s been two days so TTL should have updated. Right? What am I missing?

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.

Submit an Answer
1 answer

Hello friend!

This is usually something very minor and easy to overlook. It looks like you are using Apache, so with that in mind, what values do you have for these variables in each virtual host?


Make sure you don’t have a wildcard (like * on one of them.

Kind Regards,