Question
How to change a default document root for all new websites in Plesk?
Answer
Note: The default document root will be changed only for newly created domains. All existing domains will keep storing their files in the old location.
-
Go to Extensions and install the Panel.ini editor extension
-
Access this extension in Extensions > My extensions > Panel.ini Editor > Open and click on Editor.
-
Add the following section on top of the editor view:
[domainManagement]
docroot = "new_default_docroot"Note: Here new_default_docroot is a directory name (
public
) or a path to the directory (domain_files/public
). -
Click on ‘Save‘ to apply the changes.
For more information about defining a custom document root, visit:Â Administrator’s Guide: Defining a Custom Document Root.