• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Changing Documentroot for subscription

Hi Spikerok,

as you don't provide enough informations about your operating system and your Plesk version ( incl. MU ) and left out as well informations, about your "clone domains" ( are these subdomains, alias domains ... ), I can only suggest to read the Plesk documentation for it:

For Plesk 12.5:
 
I run Plesk 12.0.18 Update #70 on CentOS Linux 7.1.1503 (Core).

I have created two subscriptions:
- Subscription 1 called main.com and document root is /var/www/vhosts/main.com/httpdocs
- Subscription 2 called clone.com and document root is /var/www/vhosts/clone.com/httpdocs

I want Subscription 2 have document root at /var/www/vhosts/main.com/httpdocs
 
I doubt that this can be done with Plesk, because each subscription can only be modified on the /[domain].[tld] level, but not on a higher level.

However you could do a workaround: On the linux console (login with SSH, use super user mode), remove the /httpdocs directory. Instead, create a symbolic link within the second subscription to the httpdocs of the first subscription, e.g. "ln -s /var/www/vhosts/main.com/httpdocs /var/www/vhosts/clone.com/httpdocs". The webserver will then serve all files from the other subscription.

There is a big problem with what you want to achieve, though: The access properties of the file system. As different subscriptions are owned by different users, you may run into severe issues in the subscription linked to the other, because that user will not be allowed to write to files owned by the other subscription's user. So basically this solution is bad in general. You should better use the standard way of adding domains within the same subscription. There you can easily set the "Hosting options" of your second domain to the same directory as you have set them for the first domain (normally "httpdocs").
 
Back
Top