• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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