Creating subdomains in ISPmanager
The easiest way to create a subdomain is to add it in the “www domains” tab.
The corresponding folder will be created automatically in the www directory.
The ISPmanager control panel allows you to automatically create subdomains for an existing domain.
Using this function, the user can automatically create third-level domains in his domain without the need to make changes to the configuration, thereby the use of automatic subdomains frees him from additional operations.
Creating subdomains in ISPmanager occurs when directories are created in the appropriate directories, the name of the directory depends on the settings.
1) In the ISPmanager hosting control panel, go to the “WWW domains” tab, click on the required domain and enable the “Automatic subdomains” function:
In a separate directory , subdomain files will not be accessible from the main domain, you must create them in the folders corresponding to the subdomain name in the home directory of the user who owns it in the www directory.
For example, domain.com is located in the folder www / domain.com, you need to create a domain sub.domain.com. For this configuration to work, the subdomain files must be placed in the directory www / sub.domain.com
In the WWW domain subdirectory - subdomain files will be accessible from the main domain, you need to create them in folders corresponding to the name of the subdomain in the home directory of the owner user in the www / domain.com directory.
For example, domain.com is located in the folder www / domain.com, you need to create a domain sub.domain.com. For this configuration to work, the subdomain files must be placed in the www / domain.com / sub directory (i.e., create a sub folder directly in the domain.com domain directory). The data will also be available at domain.com/sub.
2) In addition, you need to create an entry * type A in the DNS configuration for the selected domain, indicating the domain IP address, or add the string * .domain.com in the “aliases” field (“WWW domains” tab):