[First of all, thank you for this great resource. I can't wait to try it]
About my problem:
I would like to clear all the confusion about the first installation of virtualmin through the install.sh script.
The following is a fictional example, but I'm sure it represents a very common situation.
This is the STARTING POINT (= POINT "A" = current situation):
just bought a vps (for example at ovh) and installed Ubuntu (but nothing more!!)
just bougth 2 different/unrelated domains from a registrar. For example: 1) paintings.com 2) soccer.com
This is my GOAL (= POINT "B" = what I would like to achieve):
I have already studied how DNS system works and how to read a DNS zone file's content. Specifically I've found the first 3 tutorials of this series very helpful https://www.digitalocean.com/community/tutorials/an-introduction-to-dns-...
I have read the documentation and watched some videos that demonstrate how to install Virtualmin For example: https://www.youtube.com/watch?v=OBsDh2hxUYo
The installation steps (and the post-install configurations) are pretty clear, BUT I DID NOT FIND ANY CLEAR INFORMATION ABOUT THE FQDN.
A) Do I need to install a LAMP stack BEFORE installing Virtualmin? (I'm 99,9% sure I don't)
B) What FQDN do I need to use in this case? Do I need to buy a third domain (like mysupervps.com) from a registrar and use it as FQDN only? Or should I use a fictional subdomain of paintings.com or soccer.com, like hello.paintings.com or hello.soccer.com?
C) After Virtualmin installation, in order to create the 2 websites, can I follow this guide? Is this the right way? Video-tutorial: https://www.youtube.com/watch?v=MDhDBiwE7bE
Here is a summary of the procedure shown in the video.
In the registrar website:
0- For each domain you bought, point its name servers to your vps ip (for example: assign to ns1.paintings.com and ns2.paintings.com the ip 18.104.22.168 where the ip is your vps ip)
In your vps Virtualmin panel:
1- Go to Server->Apache webserver. Click on the "Create virtual host" tab and fill the form
2- BIND DNS Server->Create Master Zone. Fill the form and click "Create". You will be redirected to "Edit Master Zone"
3- Edit Master Zone->Address (add various records)
4- Edit Master Zone->Name Servers (add various records)
5- Click on "Apply Configuration", then on "Apply Zone", then on "Stop BIND" and finally on "Start BIND".
6- Go to "Networking and Addresses" in your webserver section and configure the CNAMEs using the "Alternate virtual server names" field
I'm willing to create a well-detailed guide if I can manage to solve these problems. This way other newbies will not waste a lot of time trying to get things working.