Prerequisites
Before adding a subdomain, make sure you have:
- Access to HestiaCP control panel
- An existing main domain in HestiaCP
- DNS configuration for the subdomain (wildcard or A record)
Step 1: Log in to HestiaCP
Access https://YOUR_SERVER_IP:8083 and log in.
Step 2: Navigate to WEB Section
Click on WEB in the top menu.
Step 3: Locate Your Main Domain
Find the main domain you want to add a subdomain to.
Step 4: Click on the Domain Name
Click the domain name to open its details page.
Step 5: Go to Subdomains Tab
Click on the Subdomains tab.
Step 6: Click "Add Subdomain"
Click the + Add Subdomain button.
Step 7: Configure Subdomain
- Subdomain: Enter the subdomain name (e.g.,
blogforblog.example.com) - Document Root: (Optional) Custom directory path
- PHP Version: Select PHP version (default is main domain's PHP)
Step 8: Save the Subdomain
Click Add to create the subdomain.
Step 9: DNS Configuration (If Managed by HestiaCP)
HestiaCP automatically adds DNS records for subdomains. If using external DNS, add:
blog IN A YOUR_SERVER_IP
Step 10: Upload Files for Subdomain
The document root will be at:
/home/username/web/domain.com/public_html/blog
Or if you set a custom path:
/home/username/web/subdomain.domain.com/
Common Subdomain Examples
- blog.example.com - Blog platform
- shop.example.com - E-commerce store
- api.example.com - API endpoint
- dev.example.com - Development site
- mail.example.com - Webmail access
✅ Subdomain has been successfully added to HestiaCP!