When you create a hosting account, a main domain is automatically set up. This article is about understanding what "adding a domain" means in Opterius — and what the alternatives are.
One Domain Per Account
In Opterius, each account has exactly one main domain. You cannot add a second top-level domain (e.g., anotherclient.com) to an existing account the way you'd add a cPanel addon domain.
If a client needs an additional top-level domain, the options are:
- Create a new account for the second domain — the cleanest option, with full isolation
- Use a subdomain if the second "domain" is actually related to the first (e.g.,
api.example.com,shop.example.com) - Use a domain alias if the second domain should serve the same content as the main domain (e.g.,
example.netpointing at the same site asexample.com)
Changing the Main Domain
The main domain is set when you create the account. To change it:
- In Server Mode, go to Accounts → [account] → Edit
- Update the Main Domain field
- Save
[!IMPORTANT] Changing the main domain updates the DNS zone and Nginx vhost. The old domain's records are removed and replaced. Make sure you know what you're doing before changing a live account's main domain — any existing links to the old domain will break.
Adding Subdomains
For additional domains under the same account (e.g., api.example.com), use subdomains. See Creating Subdomains.
Adding Domain Aliases
For domains that should resolve to the same content as the main domain (redirect or serve the same files), use aliases. See Domain Aliases.
After Adding the Domain
After the account is created (or the main domain is changed):
-
Point nameservers — at the domain's registrar, set nameservers to your hosting nameservers (e.g.,
ns1.yourdomain.com). See Pointing Nameservers. -
Issue SSL — once DNS propagates, issue a Let's Encrypt certificate. See Issuing Certificates.
-
Deploy your site — upload files via the file manager or FTP.