Skip to main content

Subdomains sharing the same folder

Comments

6 comments

  • cPanelMichael
    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
  • salvazo
    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
  • cPanelMichael
    Hello, Could you clarify if these subdomains are added to separate cPanel accounts? Thank you.
    0
  • salvazo
    These are different accounts created from WHM and sharing the same reseller / owner
    0
  • cPanelMichael
    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
  • salvazo
    I'll investigate, thanks!
    0

Please sign in to leave a comment.