• 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

Question to create domains

Azurel

Silver Pleskian
Hi. I not understand the domain structur of plesk. Thats not help me; http://download1.parallels.com/Plesk/Doc/en-US/online/plesk-administrator-guide/68695.htm

With first start of plesk I have create a domain "domainA.tld".
Thats create this path for my custom content: /var/www/vhosts/domainA.tld/httpdocs

Now I want add a second domain "domainB.tld". And I set custom file folder again to "httpdocs".
Its create this path: /var/www/vhosts/domainB.tld without "httpdocs".

Call www.domainB.tld show content from www.domainA.tld.
In Plesk I see that "httpdocs"(for domainB.tld) means this path "/var/www/vhosts/domainA.tld/httpdocs".

I think this working so:
domainA.tld => /var/www/vhosts/domainA.tld/httpdocs
domainB.tld => /var/www/vhosts/domainB.tld/httpdocs
domainC.tld => /var/www/vhosts/domainC.tld/httpdocs
but that does not make it.

What is here my mistake?

EDIT: Why I can't delete domainA?
 
Last edited:
If you add a new domain to a subscription, Plesk creates a new vhost folder which contains all the config files for the domain. The actual site files (httdocs) are hosted in a folder under the first domain. If you set the site files folder of the new domain to httdocs, it will use the original domains httdocs folder. Make sure you set a different custom folder for each different domain.

To make things neater from a server locations perspective, you may be better off creating a new subscription for each domain. This way, all files relating to each domain will be stored in their own /var/www/vhost folder.

I guess you can't delete domainA because domainB is currently using the httdocs folder of domainA. You won't get this problem if you create a different subscription for each domain.
 
I found the solution. I must click on the "Webspaces" tab and now click on "Add Webspace". So each domain have "httpdocs".
 
Back
Top