Plesk for Windows
kb: how-to
Plesk for Linux
ABT: Group A
Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to change the document root for a single domain on Plesk?
Answer
It is possible to change the document root using the following steps:
via Plesk
- Log in to Plesk.
- Go to Domains > example.com > Hosting Settings.
- In the Document root field specify the required name for the new document root.
- Press the OK button.
via CLI
-
(On Windows) Run Command Prompt as administrator.
-
Use the following command to customize the document root:
# plesk bin domain -u example.com -www-root httpdocsnew
Note: 'httpdocsnew' in this example is relative to the subscription root
/var/www/vhosts/example.com/
or%plesk_vhosts%example.com
. In other words, the absolute path to the new directory is/var/www/vhosts/example.com/httpdocsnew
or%plesk_vhosts%example.com/httpdocsnew
.
Comments
0 comments
Please sign in to leave a comment.