This interface allows you to create and manage subdomains for your cPanel account.

A subdomain is a subsection of your website that sometimes exists as a subdirectory of your public_html (document root) directory or your account’s home directory.

Subdomains use a prefix in conjunction with the domain name.

For example, if the registered domain name is example.com, the subdomain will be prefix.example.com.

You can use subdomains to create unique user accounts for vanity domains.

Please note that after you add a new sub-domain, it may be that visitors may not be able to view your subdomain immediately.

Changes to DNS records may require two days or more to reach all of the nameservers on the Internet.

Also note that due to the order in which Apache processes its configuration file, wildcard subdomains may disrupt the functionality of service subdomains.

Service subdomains provide access to cPanel & WHM interfaces and services.

When a new account or domain is created, the system also creates its service subdomains.

You can access interfaces and services via the port or the service subdomain.

The port has a faster server response time.

However, the service subdomain allows access from behind a firewall restricting, for example, port 80 and port 443.

It is strongly recommended that you use wildcard subdomains only when absolutely necessary, or when you do not need to use service subdomains.

 

To create a subdomain, perform the following steps:

Enter the desired prefix in the Subdomain text box.

Select the desired main domain from the menu.

Enter the home directory for the subdomain in the Document Root text box.

 

The house icon represents the cPanel account’s home directory.

The Document Root text box defines the new subdomain’s directory, relative to the cPanel account’s home directory.

For example, if you enter the subdomain in the Directory text box and the cPanel account uses the /home/example home directory, the subdomain will exist in the /home/example/subdomain.example.com/ directory.

The system automatically populates this text box with the subdomain’s fully-qualified domain name (FQDN).

You cannot use the following directories as a document root:

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

Click Create.

 

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 AutoSSL is 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.

To open the subdomain’s main directory with the File Manager interface (cPanel >> Home >> Files >> File Manager), click the link under Document Root that corresponds to that subdomain.

 

To search existing subdomains, perform the following steps:

Enter the search criteria in the Search text box.

Click Go.

 

Je li Vam ovaj odgovor pomogao? 1 Korisnici koji smatraju članak korisnim (3 Glasovi)