Subdomains¶
A subdomain is a website of its own below one of your domains — for example
blog.your-domain.com or shop.your-domain.com. It gets its own directory and
can run a different PHP version from the main site.
Overview¶
| Property | Meaning |
|---|---|
| Name | The part in front of your domain, e.g. blog |
| Full name | Follows from it, e.g. blog.your-domain.com |
| Document root | Its own directory, separate from the main website |
| PHP version | Freely selectable, independent of the main website |
| Status | Active or disabled |
Creating a subdomain¶
- Navigate to Subdomains
- Choose Create Subdomain
- Select the domain the subdomain should sit under
- Select the website the subdomain belongs to
- Enter the subdomain prefix — only the front part, so
blograther thanblog.your-domain.com
Set the PHP version afterwards under Edit (default 8.4).
The directory is created automatically. Upload your files afterwards through the File Manager or via FTP.
Quota
How many subdomains you may create depends on your package. Current usage is shown in brackets on the Create Subdomain button.
Editing a subdomain¶
Under Edit you change three values:
- Target directory: path relative to the website's home directory. The path is always resolved within the webspace;
../cannot lead out of it. A newly set directory is created. - PHP version: if left empty, 8.4 is set.
- Active: switches the subdomain on or off.
After saving, the web server is reconfigured. When Active is switched, the website's SSL certificate is also reissued, because only active subdomains are included in the certificate.
DNS record¶
For the subdomain to be reachable, its name has to point at the server.
If your domain is managed here, this happens automatically — nothing to do.
If your domain is with another provider, create an A record there pointing at the same IP address as your main domain. You can look that address up under Domains.
SSL certificate¶
Subdomains are included in the certificate of their website. It is issued as soon as the name resolves to the server — see SSL Certificates.
DNS first, then the certificate
As long as the subdomain does not resolve to the server, no certificate can be issued. Create the DNS record first.
Disabling or deleting a subdomain¶
Disabling takes the subdomain offline but keeps its directory and files. Useful when a site should be temporarily unreachable.
Deleting removes the subdomain and its DNS record. The directory and its files remain.
Files remain
The directory and its files stay on the server after deletion.