User Agents

Web browsers and everyday web tech, explained

Add an Addon Domain in DirectAdmin: Step-by-Step Guide

· 6 min read · Extensions

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Adding an addon domain in DirectAdmin allows you to host a completely separate website with its own unique domain name under a single hosting account. Unlike a subdomain, which is a prefix of your primary domain (e.g., blog.example.com), an addon domain is a standalone address (e.g., newsite.com) that shares the server resources of your main account but maintains its own directory and file structure. This is an ideal solution for freelancers managing multiple client sites or business owners running several distinct brands without paying for separate hosting plans for each one.

What You'll Need

  • A registered domain name from a domain registrar (e.g., Namecheap, GoDaddy, Google Domains).
  • Active DirectAdmin hosting account credentials.
  • Access to your domain registrar's DNS management panel to update nameservers.
  • The IP address of your hosting server (found in the DirectAdmin dashboard).

Step-by-Step

  1. Log in to DirectAdmin: Enter your username and password at your hosting provider's DirectAdmin login URL. Once authenticated, you will land on the main dashboard. Depending on your skin (Evolution or Enhanced), the layout may vary, but the functional tools remain the same.
  2. Locate Domain Setup: In the Evolution skin, look for the "Account Manager" section and click on "Domain Setup". If you are using the older Enhanced skin, look for the "Account Manager" menu on the left sidebar and select "Domain Setup".
  3. Initiate the Addon Process: Click the button labeled "Add New」 or "Add Another Domain". This will open a configuration page where you define the parameters of the new site.
  4. Enter the Domain Name: In the "Domain" field, type the full domain name you wish to add (e.g., mysecondsite.com). Do not include http:// or www in this field; enter the root domain only.
  5. Configure Domain Options: You will see a checkbox asking if you want to create a private email account for this domain. If you intend to have professional email addresses like info@mysecondsite.com, ensure this is checked. Additionally, verify that the "Create a separate directory" option is active, as this ensures the files for your addon domain are kept separate from your primary domain's public_html folder.
  6. Save and Create: Click the "Create」 or "Save」 button. DirectAdmin will now generate the necessary server-side configurations, create a new folder in your file system, and set up the DNS zone file for the domain.
  7. Update Nameservers: The domain is now configured on the server, but the rest of the internet does not know where to find it. Log in to your domain registrar's control panel. Locate the "DNS Management" or "Nameservers" section. Replace the default registrar nameservers with the ones provided by your hosting company (e.g., ns1.yourhost.com and ns2.yourhost.com).
  8. Verify Propagation: DNS changes are not instantaneous. They must propagate across global servers, which can take anywhere from a few minutes to 48 hours. You can use tools like DNSChecker.org to see if your domain is pointing to the correct server IP.
  9. Install an SSL Certificate: To ensure your site is secure (HTTPS), go back to the DirectAdmin dashboard. Navigate to "SSL Certificates". Select "Free & automatic certificate from Let's Encrypt". Check the boxes for both the root domain and the www version, then click "Save". This prevents browsers from showing a "Not Secure" warning to your visitors.

Common Mistakes

One of the most frequent errors is adding the domain to DirectAdmin but forgetting to update the nameservers at the registrar. Without this step, the domain is essentially a "dead link" because the global DNS system doesn't know which server is hosting the files. Another common mistake is entering the domain with www. at the start; DirectAdmin expects the root domain, and adding the prefix can lead to configuration errors or issues with SSL issuance.

Users also frequently confuse addon domains with aliases (parked domains). An alias simply redirects a second domain to the same content as the primary domain. If you want a completely different website with its own files, you must use the "Addon" functionality. Finally, some users fail to check their hosting plan limits. Many shared hosting plans limit the number of addon domains you can have. If the "Add New」 button is missing or you receive a "Limit Reached" error, you may need to upgrade your plan.

Tips

To keep your server organized, always use a clear naming convention for your directories. DirectAdmin typically creates a folder named after the domain inside the public_html directory or as a sibling to it. If you are managing dozens of sites, consider using a file manager or FTP client to create sub-folders for backups and staging versions of your addon sites to avoid clutter.

For better performance, if your hosting provider supports it, consider using a CDN like Cloudflare. Instead of pointing your nameservers directly to DirectAdmin, you point them to Cloudflare, and then point Cloudflare's A records to your DirectAdmin server IP. This adds a layer of security and speeds up content delivery for global users. Additionally, always enable the "AutoSSL" feature if available, as this ensures your certificates renew automatically without manual intervention every 90 days.

Troubleshooting

If you have added the domain and updated the nameservers, but you see a "403 Forbidden" or "404 Not Found" error, the first thing to check is the document root. Use the DirectAdmin File Manager to ensure that your website files (like index.php or index.html) are located in the correct folder. For addon domains, the files should be in /domains/youraddonsite.com/public_html, not the primary account's public_html folder.

If you encounter a "DNS_PROBE_FINISHED_NXDOMAIN" error, it means the DNS records haven't propagated or were entered incorrectly. Double-check that there are no typos in your nameserver entries at the registrar. If you are using a custom A record instead of nameservers, ensure the IP address matches exactly what is listed in your DirectAdmin "System Info" section.

When Let's Encrypt fails to issue an SSL certificate, it is usually because the domain is not yet fully pointed to the server. The Let's Encrypt validation process requires the domain to resolve to the server requesting the certificate. If you just changed your nameservers, wait a few hours before attempting to generate the SSL certificate again.

Frequently Asked Questions

Can I add an unlimited number of addon domains?

No, the number of addon domains is determined by your hosting provider's package limits. You can check your current limit in the DirectAdmin dashboard under the account information section.

Will an addon domain affect the speed of my main site?

Since addon domains share the same CPU, RAM, and disk I/O as your primary domain, a high-traffic addon site can potentially slow down your main site. If one site consumes all available resources, all sites on that account will be affected.

Do addon domains have their own FTP accounts?

By default, they share the main account's FTP credentials, but you can create separate FTP users in DirectAdmin and restrict their access specifically to the addon domain's folder for better security.

Can I turn an addon domain into a primary domain?

This is generally not possible through the user dashboard. You would need to contact your hosting provider's support team to migrate the account or change the primary domain designation manually.

What happens if I delete the addon domain?

Deleting an addon domain in DirectAdmin typically removes the DNS zone and the associated folder in the file manager. Always take a full backup of your website files and databases before deleting a domain.

Do I need to pay extra for an addon domain?

You must pay for the domain registration itself via a registrar, but adding it as an addon in DirectAdmin is usually free, provided your hosting plan allows for additional domains.