Subdomains are basically separate hostnames that are part of a larger domain.
For instance, “example1.my-best-domain.com” and “example2.my-best-domain.com” are subdomains to the larger domain “my-best-domain.com“.
You can have a further subdivision – “english.example1.my-best-domain.com” and “spanish.example1.my-best-domain.com” are subdomains to “example1.my-best-domain.com“.
In theory, this subdivision can go down to 127 levels deep, and each one can contain up to 63 characters, as long as the whole domain name does not exceed a total length of 255 characters. In practice, some domain registries have shorter length limits than that.
Subdomains are commonly used to assign a unique name to a particular department, function, or service related to the main site or organization. For example, the forum on a given website can have its separate subdomain – forum.my-best-domain.com.
From the Hosted Domains area of the Control Panel, you can create a subdomain for a domain name that is already hosted in your account.
Here are the steps to follow:
- Click on the “Create a Subdomain” button on the top right and make sure the option “Create a Subdomain” is selected.
- To create the subdomain webmail.my-best-domain.com, type in “webmail” and select “my-best-domain.com” from the the drop-down menu, containing all hosted domains.
- Advanced Settings – this section is optional. Please leave the default settings if you are not sure what to do. (Read further below to learn more about the Advanced settings)
- Click “Add a Host” to create the subdomain. The new host will need about 10 minutes to start working.
Here is what the Advanced settings are about:
Path: this field enables you to choose the folder that the subdomain will point to. By default that is: /www/subdomain/. For instance, the default path to example1.my-best-domain.com is /www/example1.my-best-domain.com/.
IP Address: here you have a dropdown menu that enables you to select the shared IP address of your account or assign a dedicated IP address for that particular subdomain. For more information on dedicated IP addresses, please refer to the respective articles in this knowledge base.
After that you have the option to specify a custom error page for errors 400/401/403/404. You can also use the system (Apache) page or the default error pages.
Secure Socket Layer (SSL): this option enables you to use secure pages on this subdomain. For more information on SSL, please refer to the respective articles in this knowledge base.
ModSecurity: the ModSecurity firewall option allows you to protect your subdomain-installed applications from most common hacker attacks;
Further below you have the option to Activate Access & Error Logs. The Access Logs show you when the subdomain was accessed and by what IP address. The Error Logs show when and what errors occured on the subdomain.
You can see all subdomains in your account listed in the table of hosted domains.
In this table, you can find the following information per subdomain: the current name server status, the number of pertaining mailboxes, an indicator if an SSL certificate is installed, an indicator if DNSSEC is enabled, a button that will open the folder that this subdomain is pointed to, a button to check the traffic stats for this subdomain, a button to edit this subdomain and finally a button to delete this subdomain.
IMPORTANT: The “www” subdomain is the default subdomain of your domain. You cannot delete the “www” subdomain. Instead, you can simply delete the domain name from the Hosted Domains section of the Control Panel. Editing the “www” subdomain also updates the domain name itself. In other words, if you want to edit the domain name my-best-domain.com, then simply edit the www.my-best-domain.com subdomain.