Subdomain Settings
CloudWeb offers six subdomain handling modes that determine how your hosting's subdomains behave. You can find the settings in the user panel under hosting settings.
Mode overview
1. Disabled
Subdomains are not handled. Only the main domain works. This is the default setting for new hostings.
2. Serve All to Main
All subdomains serve the same content as the main domain. For example, blog.example.com shows the same content as example.com. Useful for preventing 404 errors on mistyped subdomains.
3. Redirect All to Main
All subdomains redirect (301) to the main domain. For example, www.example.com → example.com. Good for SEO – prevents duplicate content.
4. Folder Based
Each subdomain maps to a folder in the web root directory:
blog.example.com→/var/www/html/blog/shop.example.com→/var/www/html/shop/
The folder must exist. Suitable for static microsites or simple projects.
5. Manual
Only explicitly created subdomains work. You have full control over the document root and settings for each subdomain. Best for production environments where you want precise control.
6. Mixed
Combines manual and folder-based modes. Manually defined subdomains use their own settings, while undefined ones fall back to folder-based mapping. Flexible for development environments.
Creating subdomains (Manual and Mixed modes)
In Manual and Mixed modes, you can create individual subdomains with custom document roots:
- Go to the Subdomains section in the admin panel
- Click Add Subdomain
- Enter the subdomain name and path to the document root
- Save the settings
Recommendations
- Production – use Manual mode for maximum control
- Development – Mixed or Folder Based mode for quick testing
- SEO – Redirect All to Main mode to prevent duplicate content
- Simple website – Disabled mode if you don't need subdomains
Was this article helpful?
Your feedback helps us improve our documentation