Subdomains sharing the same folder
Hi, Im trying to find a solution for this with no success. I have two subdomains:
subdomain1.domain1.com
subdomain2.domain2.com
Both subdomains have to share the same folder on the server located on:
/home/domain2/subdomain/upload
And show the same content (files & folders).
Can you explain how to acomplish this withous addon domains ?
Thanks
-
Hello, You can use the same document root for both subdomains. To update the document root for an existing subdomain, browse to "cPanel >> Subdomains" and edit the document root in the list of existing subdomains. Note that the subdomains must be added to the same cPanel account for this to work. Thank you. 0 -
Hi Michael, If I change the root document to subdomain 1 as you said: The document root is: /home/domain1/home/domain2/subdomain/upload And I need this path: /home/domain2/subdomain/upload 0 -
Hello, Could you clarify if these subdomains are added to separate cPanel accounts? Thank you. 0 -
These are different accounts created from WHM and sharing the same reseller / owner 0 -
Hello, That type of configuration isn't supported because it would involve sharing a document root with domain names across multiple accounts. That said, there is an unsupported workaround for a similar setup on the following threads you may find helpful: Share Directory Across Multiple Accounts sharing directory for users /home/scripts Thank you. 0 -
I'll investigate, thanks! 0
Please sign in to leave a comment.
Comments
6 comments