Domain document root explained (and how to change it)
The document root is the folder whose files a website shows. When someone opens https://blog.example.com/about.html, the server sends about.html from that domain's document root.
Where to see it
Open Domains in the control panel (https://your-server:2083, section Domains). The Document root column shows each domain's folder, for example ~/public_html/blog. ~ is your home folder.
Default folders
| Domain type | Default document root |
|---|---|
| Main domain | public_html |
Addon domain another-site.com | public_html/another-site.com |
Subdomain blog.example.com | public_html/blog (or public_html/blog.example.com if public_html/blog is already used) |
| Alias (parked domain) | public_html — always the main domain's folder |
You can enter another folder when you add an addon domain or a subdomain. The path is relative to your home folder, for example sites/shop. It may contain letters, digits, ., _, - and /, but not ... The folder is created if it does not exist.
How to change the document root
The folder of an existing domain cannot be edited. To move a website to another folder:
- Copy the website's files to the new folder, for example with File Manager (section Files).
- On Domains, click Remove next to the domain. The files in its folder are kept.
- Add the domain again with the new Document root.
Common questions
Where do I upload the files of my main website?
Into public_html in your home folder.
Can two domains use the same folder?
Use an alias for the main domain's folder. For two names showing the same addon website, add a redirect from one to the other.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- How to add an addon domain (host another website)
Add a second domain as its own website in your hosting account, choose its folder, and point it to the server so it gets DNS, email and a free SSL certificate.
- How to create a subdomain (blog.example.com)
Create a subdomain such as blog.example.com with its own folder in the control panel, and learn how its DNS record and SSL certificate are set up.
- How to remove an addon domain, subdomain or alias
Remove an addon domain, subdomain or alias from your hosting account, and see exactly what is deleted (DNS, email, settings) and what is kept (files).
- How to create a backup job (schedule automatic backups)
Schedule automatic backups of files, databases and email — from every 15 minutes to monthly — with how many copies to keep and where to store them.