Hi, I have just purchased a VPS for the first time and it comes with Virtualmin/Webmin preinstalled.
My goal: to serve two independent websites under www.domain1.com and www.domain2.com from my VPS with a single IP address.
My current domains:
1.- www.domain1.com has already been configured by my registar to point to my VPS. They have changed the nameservers to ns1.domain1.com and ns2.domain1.com and they point to the URL of my VPS.
2.- www.domain2.com will point to the VPS in a second stage, once I learn how all this works.
Using Virtualmin, I have created a new virtual host, and I have been trying to configure it, but the best I have achieved is to show the default host instead of the public_html folder corresponding to the virtual host domain1.com
I mean, www.domain1.com is showing /path_to_default_server/index.html instead of /path_to_virtual_host_1/index.html
Therefore, my questions are:
1.- How to configure the VPS / virtual host domain1.com, so that www.domain1.com shows the website instead of the default host.
2.- And particularly, I want to know if I need to configure a DNS zone or something like this, that my tech support is telling me but they won’t assist me any further. And I don’t have any idea of this no matter how much I have googled it.
Thank you very much!