terminology easily gets confusing … in the Virtualmin world, subserver is just an administrative term where one admin account can see and manage many totally different and unrelated URLs (aka domains) in that single Virtualmin account.
SubDomains are a DNS and URL kind of thing – meaning a dot is added and a prefix (subdomain) is added to a lower/shorter domain. in my view, your “domain” is mymaindomain.com … and your subdomain name is trl2uviae213c – put together of course the full URL aka subdomain is trl2uviae213c.mymaindomain.com.
in Virtualmin you most likely have mymaindomain.com as your main/primary domain in that single admin account. Then in that admin account, you can create, for administrative and ownership functions, a subserver. a subserver can be ANY URL or domain or subdomain – it is not required to be related to the primary domain in any way !!
Sadly I don’t have any experience with your actual issue of SEO and launching a production URL from a test/devel URL … hopefully others can help with that, but I am guessing there is a way to do it via the Virtualmin control panel without needing to edit any config files by hand.
I echo what @verne says about editing config files by hand on a Virtualmin server and if you are using this idea for a SaaS related service then please be aware of one very big gotcha:
If a sub server of Virtualmin is compromised, the hacker gains access to all other sub servers which have been created under that virtual server.
Instead of automation to create sub servers and editing config files by hand, you should use Virtualmin’s top level virtual servers and rename the domain from say
tr12uviae213c.mymaindomain.tld
To
Somedomain.tld as and when you need to switch from a pre-account to a live account.
This will make the rest of your virtual servers more isolated in case one of them is compromised and will save you troubles with automatic renewal of SSL certificates when the owner of somedomain.tld moves away without informing you about it first.