How to create an addon domain in cPanel Print

  • 1

Addon domains allow you to control multiple domains from a single account. An addon domain links a new domain name to a directory in your account, and then stores its files in that directory.

An addon domain will be viewable one of the following ways, where addon is the addon domain you are adding and example.com is the primary domain for the cPanel account:

  • addon.com
  • addon.example.com
  • example.com/addon

Create an addon domain

To create an addon domain log into your cPanel and perform the following steps:

Scroll to "Domains" and select "Addon Domains."

Enter the new addon domain’s name in the New Domain Name text box. When you enter the domain name, cPanel automatically populates the Subdomain and Document Root text boxes.

To create multiple addon domains with the same username and different extensions (for example, comand example.net), manually enter a unique username in the Subdomain text box.

To choose a document root directory other than the automatically populated value, manually enter the directory name in the Document Roottext box.

 

To create an FTP account for the new addon domain, select the Create an FTP account associated with this Addon Domain checkbox. When you select this checkbox, additional settings will appear:

  • cPanel automatically populates the FTP Username text box. To select a different FTP account username, manually enter the desired username.
  • Enter and confirm the new password in the appropriate text boxes.

 

SSL certificates

When you create an addon domain, parked domain, subdomain, or main domain, the system will attempt to automatically secure that domain with the best-available existing certificate.

  • If no certificate exists, the system will generate a self-signed certificate to secure the new domain.
  • If AutoSSLis enabled for the account that owns the new domain, the system will add a request for an AutoSSL certificate to secure the new domain and install it when it becomes available.

 

Subdomain creation

When you create an addon domain in the cPanel interface, the system automatically creates a subdomain. To alter or delete the subdomain after you create it, you may alter or delete the information that the addon domain’s website displays. The system stores and displays the addon domain’s traffic statistics as part of the subdomain’s traffic statistics.

 

Modify the document root directory for an addon domain

To modify the document root directory for an addon domain, perform the following steps:

  1. Click the edit icon () for the addon domain that you wish to manage in the Document Root column.
  2. Enter the path to the addon domain’s new document root directory in the available text box.

Note:

You cannot use the following directories as a document root directory:

    • The account’s home directory itself (/)
    • Directories outside of the account’s home directory (./ and ../)
    • .cpanel
    • .trash
    • etc
    • mail
    • ssl
    • tmp
    • logs
    • .cphorde
    • .spamassassin
    • .htpasswds
    • var
    • cgi-bin
    • .ssh
    • perl5
  1. Click Change.

Enable or disable addon domain redirection

To disable or enable redirection of an addon domain, perform the following steps:

  1. Click Manage Redirectionfor the addon domain that you wish to manage.
  2. To redirect the domain, enter the link to which you wish to redirect the addon domain.
  3. Click Save, or, to disable the redirection, click Disable Redirection.

Remove an addon domain

To remove an addon domain, perform the following steps:

  1. Click Removefor the addon domain that you wish to remove.
  2. Click Yes.

 

Addon domains vs. aliases

Characteristic

Addon domains

Alias domains

The domain appears in the browser’s address bar.

Yes

Yes

The domain uses the following Apache directive:

VirtualHost

ServerAlias

The domain uses separate logs.

Yes

No

The domain uses separate stats.

Yes

No

The system treats the domain as a subdomain (other than the URL).

Yes

No

This domain uses the parent domain’s content.

No

Yes

This domain uses the parent domain’s SSL certificate.

No

Yes

 


Was this answer helpful?

« Back