When Panel creates a site, one of the operations it carries out is to create a directory structure for the site and fill the directories with some initial content. These directories are located in the corresponding virtual host directories -
>, where domain_name is the name of a corresponding domain. By default, Panel creates similar sets of files and directories inside each virtual host directory. See the section Default Structure of Panel Virtual Host for a complete list of these files and directories.
If you want to change the set of files and directories that are automatically included in new sites, for example, so as to include some useful scripts or change the error pages, you can define a custom virtual host template. Later, you can replace, edit or remove files generated by the template from any site.
In addition, resellers can set separate virtual hosts templates for their customers.
To define a custom virtual host template:
httpsdocsdirectories, scripts in the
cgi-bindirectory, and custom error messages in the
You can use the default files stored in the
Make sure that the directories are in the root of the archive file and not in a subdirectory.
To switch back to the default virtual host template, go to Tools & Settings > Virtual Host Template and click the Default button.
Note: Subdomains have the same status with additional domains and employ the same directory structure. Thus, they have a separate directory in
/var/www/vhosts and their own configuration files, like
Please send us your feedback on this help page.