• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue "Same webspace" (from other domain) does not work in Plesk Obsidian 18.x in Debian 9

jmar83

Regular Pleskian
After creating such a website, i just see the plesk default page instead of the content from same webspace from other domain.

why?

and how to solve that problem?
 
Possible or not?!?

When i remember right, it was possible ~ 1-5 yrs. ago when i worked on a Plesk Obsidian on Ubuntu 18.x... now i'm on Debian 10 "Buster" and it seems that it doesn't work anymore...

Am i right or not??
 
As long as both domains are in the same subscription, you can enter the same document root path in the "Hosting Settings" page for both. If the domains are not in the same subscription, this was neither possible then, nor is it possible now.
 
it does not work when i

1.) create a new domain
2.) then select the existing location of an already existing domain


then i created a directory structure like /existing_domain.com/new_domain.com
 
1. On Domain A click on "Hosting Settings" and write down the document root path of that domain.
2. Click on "Add Domain" and create domain B as "Webspace".
3. Click on "Hosting Settings" and change the document root path of domain B to the same like domain A.

plesk01.jpg
 
I can't seen any absolut path on my domain A, only /httpdocs (in fact, that's not a filesystem absolut path)

Notthing like /var/www/vhosts/DOMAIN_NAME/httpdocs so something like that there, which i can copy/paste to www-root folder of domain b...
 
-> Do i have so create a symlink with "ls -s ... " over the SSH console - is that the workaround?
 
-> After creating a symlink with

root@xxx:/var/www/vhosts/DOMAIN_B/httpdocs# ln -s /var/www/vhosts/DOMAIN_A/httpdocs DOMAIN_A

then

- entering /httpdocs/HOST_A in domain config
- chown -R DOMAIN_B:psacln ./DOMAIN_A
- defining Options Indexes FollowSymLinks for both http and https for domain B as apache custom setting in plesk

-> it still does not work.. it seems entering /httpdocs/HOST_A in domain config will not be accepted becase of symlink. how to bypass?

-> Using /httpdocs/../../DOMAIN_A/httpdocs for domain B does also not work. That kind of string will be destroyed after saving - why??

-> mount --bind ... does also not work because i can't set permssions separetely
 
Last edited:
Short answer: You cannot access the documentroot of another domain. There's no point in trying to make this work with symlinks or other potentially dangerous methods.
DOMAIN_A will _only_ have access to files within /var/www/vhosts/DOMAIN_A
DOMAIN_B will _only_ have access to files within /var/www/vhosts/DOMAIN_B
 
Back
Top