The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Subdomains sharing the same folder

Discussion in 'General Discussion' started by salvazo, Jul 31, 2017.

  1. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    53
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,958
    Likes Received:
    1,274
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    53
    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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,958
    Likes Received:
    1,274
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you clarify if these subdomains are added to separate cPanel accounts?

    Thank you.
     
  5. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    53
    These are different accounts created from WHM and sharing the same reseller / owner
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,958
    Likes Received:
    1,274
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  7. salvazo

    salvazo Member

    Joined:
    May 2, 2011
    Messages:
    11
    Likes Received:
    1
    Trophy Points:
    53
    I'll investigate, thanks!
     
    cPanelMichael likes this.
Loading...

Share This Page