How to create subdomain(s)?

Hosting.Energy allows you to create an unlimited number of subdomains.

1. Enable support for auto subdomains
To enable auto subdomains, go to ISPmanager in the "WWW" menu and then in the properties of the selected WWW domain, in the "Auto subdomains" list, select the option for this function:
"In a subdirectory of a domain" - subdomain files will be accessible from the main domain, you need to create them in the folders of the corresponding subdomain names in the home directory of the owner's user in the www/example.com directory, for example, if the example.com domain is located in the www/example.com folder, then the subdomain.example.com subdomain will be located in the www/example.com/subdomain directory. In this case, the subdomain data will also be available at http://example.com/subdomain/ "In a separate directory" - subdomain files not will be accessible from the main domain; they must be created in folders corresponding to the subdomain name in the home directory of the owner's user in the www directory, for example, if the example.com domain is located in the www/example.com folder, then the subdomain.example.com subdomain will be located in the www/subdomain.example.com directory
2. Creating an alias
For the subdomain to work correctly, it is required to specify an alias (alias) of the form “subdomain.example.com” in the “Aliases” field in the properties of the selected WWW domain.
If you have many subdomains, it’s easier for you to create an alias like “*.example.com”
3. Create a directory
- If you chose the option of auto subdomains "In a separate directory" You need to create a directory "subdomain.example.com" in the www/ directory If there is already a symlink (link to another directory) with the same name, you need to delete it and create a directory with the same name. - If you chose the auto subdomain option “In a domain subdirectory” You need to create a "subdomain" directory (without ".example.com") in the www/example.com directory If there is already a symlink (link to another directory) with the same name, you need to delete it and create a directory with the same name.