Updated: 15 November 2026 · Applies to: DirectAdmin (Evolution skin)
To add a subdomain in DirectAdmin, go to Account Manager › Subdomain Management, click Add Subdomain, type the name (for example blog for blog.example.com) and save. A subdomain can run its own website from its own folder, separate from your main site.
Steps
- Log in to DirectAdmin (usually
https://your-server:2222; the address is in your welcome email). - Open Account Manager › Subdomain Management. If you have more than one domain, select the one the subdomain belongs to.
- Click Add Subdomain.
- Enter only the first part of the name, such as
blogorshop, not the full address. - Choose the document root (the folder the subdomain serves files from). See the next section.
- Save, then upload the subdomain's files to that folder with File Manager or FTP.
Which document root to choose
According to DirectAdmin, recent versions let you pick the folder when you create the subdomain:
- The classic location, inside the main domain's web folder:
domains/example.com/public_html/blog. This is how DirectAdmin has always done it. The subdomain's files are then also reachable asexample.com/blog. - A separate folder of your choice, outside the main site's
public_html. This keeps the two sites apart, which is tidier if you run a different application (for example a WordPress blog next to a shop) or plan to move one of them later.
The Subdomains list shows each subdomain's document root and PHP version, and has buttons to change either one later without recreating the subdomain.
When the subdomain starts working
If your domain uses the nameservers of the server it is hosted on, DirectAdmin adds the DNS record for you, and the subdomain usually works within minutes. If your DNS is hosted somewhere else (for example at your registrar or a DNS service), add an A record for the subdomain there, pointing to your hosting server's IP address.
To check what the subdomain resolves to, run this from any computer with dig installed (it is in the bind9-dnsutils package on Debian and Ubuntu):
dig +short blog.example.com A
It should print your server's IP address. If it prints nothing, or a different address, the DNS record is missing or still points elsewhere. For help with records, see How to add a subdomain that points to an IP address? and How to setup the DNS for a DirectAdmin web server?
HTTPS for the new subdomain
A new subdomain needs to be covered by an SSL certificate before https://blog.example.com works without a warning. Depending on how the server is set up, DirectAdmin can request a Let's Encrypt certificate for new subdomains automatically; if yours shows a certificate warning, open SSL Certificates for the domain and add the subdomain to the certificate.
Common problems
- You cannot add another subdomain: your hosting package may allow only a fixed number of subdomains. Remove one you no longer use (see How to Remove a Subdomain in DirectAdmin) or ask for a larger package.
- The subdomain shows the main website: the DNS record exists but the files are in the wrong folder. Check the document root in the Subdomains list.
- A subdomain of someone else's domain is refused: according to DirectAdmin, servers can block users from creating subdomains of domains that belong to another account. Add your own domain first.
Official documentation: DirectAdmin 1.648 changelog, subdomain document root.