• 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.

Resolved change the location of a vhost

Cordal

Basic Pleskian
I have a server with Debian 8.0 and Plesk Onyx 17.8.11, what I want to do is that when someone accesses domain1 it shows the contents of a folder in domain2, so if someone enters domain1 use as pach:

/var/www/vhost/domain2/httpdocs/folder/

instead of

/var/www/vhost/domain1/httpdocs/

which is what would correspond

I do not know if I explained myself correctly.
Thanks in advance.
 
You cannot link across subscription boundaries. Numerous posts here have asked the same question, some users thought they could maybe use a symbolic link. But as the owners of the different paths are different, it will not work. The only correct solution is to place both domains into the same subscription. Then you can either use different document root settings or symbolic links to achieve what you want.

However a warning: What you want to do is to nest one domain inside another. This has severe risks, because for example when you delete the upper level domain from the panel, it will probably delete all that's on a lower level with it. Backups and restores can become problematic, too. It is better not do nest domains like this at all.

Maybe you can find a URL rewrite solution instead?
 
Ok, thanks for your answer, I understand that they are domains of the same subscription, if it could be done, if this is the case as I would have to do it, or some link that explains how to do it.
I understand the risks he tells me, but it is that all domains use the same code, using the domain name as a parameter to show data, so I think this is the best solution (known)
 
I have already tried the way you tell me, adding the domains within the same subscription, and it works perfectly, thank you very much.
 
Back
Top