Typically, you’ll want to use your shared hosting account to serve websites and handle mail with your domain(s). A domain is typically understood as a hostname of two parts (e.g. mydomain.com), sometimes of three parts (e.g. mycompany.co.uk) - compared to subdomains which usually introduce an additional minor part (e.g. blog.mydomain.com).
Make sure you have enabled the web virtual server, otherwise you will not be able to serve websites from your domain. You can enable the web virtual server from Virtualmin by doing the following:
-
Select a virtual server from the drop-down in the left-hand navigation (your main virtual server should be already selected when you first login to Virtualmin).
Click Edit Virtual Server in the left-hand navigation.
Click Enabled features
Select Web virtual server enabled? and Enable PowerDNS domain?
Click Save Virtual Server
First, you should own a domain - that is, have it registered with a domain registrar. Joyent does not provide a domain registrar service, so you’ll need to register a domain first with a 3rd party provider. Once you have a registered domain, do the following:
-
From the left-hand navigation, click Create Virtual Server.
In the Domain name field, enter the desired name for your new domain (do not enter http://... or even www.) and a brief description in the Description field.
Click Enabled features. From here you can decide whether you want to enable email, MySQL, WebDAV, Subversion etc. for your domain. Most of the features are disabled by default (including the web server!), so be sure to check over the options and enable what you need. It is a good practice to leave off things you don’t currently need; they can always be turned on later. Since you’re adding a domain, you’ll most likely want to enable Web virtual server enabled? to make your website accessible.
Finally, click Create Server to create your domain.