How is this done? I tried to set up DNS and create the records for the domain name and nameservers with still no luck.
In command prompt of your local computer run:
nslookup server1.mydomain.com
and check output. You should get something like:
Server: somename
Address: dnsresolver
Name: server1.mydomain.com
Address: xxx.xxx.xxx.xxx
Take a look at the second pair "Name / Address". Address will show the IP of your VPS/Server. If you get something like "Can't find server1.mydomain.com" then it means there is some problem with the resolution of the subdomain/hostname.
Why do I have to create a new account? I wanted to manage this all from root account. It is not for my users, it is so I can access the admin panel securely using SSL.
CWP installs the Let's Encrypt SSL for the hostname too. So you will be able to access the panel over HTTPS (
https://server1.mydomain.com:2031) when the problem with the hostname resolution is solved.
It is better to host every website in a separate account for security reasons. However, you are free to add "mydomain.com" as an addon/extra domain name to the existing account.