The document root is the folder that the web server uses as the “starting point” for your website. On GARMTECH hosting (Plesk) the default document root is usually httpdocs.
You may want to change the document root if:
- Your application is located in a subfolder (for example
public or web).
- You uploaded files into another directory and want the domain to open that folder.
- You need separate roots for different sites/subdomains.
Change the document root in Plesk
- Log in to Plesk via My.GARMTECH.
- Open Websites & Domains and select the domain (or subdomain).
- Click Hosting Settings.
- Find Document root.
- Enter the folder path relative to the domain root. Examples:
httpdocs (default)
httpdocs/public (a common setup for frameworks)
httpdocs/site (if you keep the site in a subfolder)
- Click OK or Apply to save.
Make sure the folder contains the correct files
- The document root should contain your website entry point, usually
index.php or index.html.
- If you point the document root to an empty folder, you will see 404 errors or a placeholder page.
Important notes
- Separate roots: In Plesk, each domain/subdomain can have a different document root.
- WordPress: WordPress expects its core files to be in the document root (unless you use an advanced configuration). If you moved the root, update configuration carefully.
- HTTPS: After changing the root, test HTTPS pages too. If you use redirects, avoid creating redirect loops (HTTP→HTTPS + www rules from multiple places).
If you also need to upload files
Use FTP-SSL (FTPS) or the Plesk File Manager. For FTP with a valid SSL certificate, connect to your server hostname (the hostname is shown in My.GARMTECH for your hosting service).