Virtual Hosts not working for additional domains
I am running Virtualmin on Ubuntu 14.04 droplet. I have a domain bought from amazon route53 and all DNS work is left to it. I am not using digitalocean or Virtualmin's DNS features.
Ok, so the problem is, when I use the parent domain example.com on my droplet, it works fine, but when I create a subdomain on Route53 and point it to the same IP address the parent domain has, and then create a virtual host on droplet, it does not work.
I have tested DNS settings through 3rd party tools, and seems like it is properly resolving to the given IP. On the server, when I try to access http://sub.domain.com/ it gives "Server Not Found" error.
When I check the host via internal URL, https://example.com:10000/virtual-server/link.cgi/126.96.36.199/http://www.sub.domain.com/ , it works and shows the index file.
What am I doing wrong here?