How to change a default document root for all new websites in Plesk?
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:
docroot = "new_default_docroot"
Note: Here new_default_docroot is a directory name (
public) or a path to the directory (
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.
- How to change virtual hosts location in Plesk for Linux
- How to change the location for virtual hosts in Plesk for Windows Server