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.

How to move addon domain folder to another folder?

Discussion in 'Bind / DNS / Nameserver Issues' started by RhysPrice, May 20, 2015.

  1. RhysPrice

    RhysPrice Registered

    Joined:
    May 20, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Birmingham
    cPanel Access Level:
    Website Owner
    Hi guys, I have created a proxy site, and all the sites that are proxied have a few separate domains, that I have made add on domains in cPanel, e.g.:

    ThePirateBay has 4 domains, that I have made add on domains to my main site domain. In the public_html there is a folder for each add on domain. I plan to create a lot more proxies so there is going to be a lot of folders.

    Is it possible to move the add on domains into a separate folder?

    I tried it, but when I visit the add on domain, it has the 404 page.
     
  2. LostNerd

    LostNerd Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    258
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Hastings, East Sussex, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    Personally, I use the following folder structure...

    1. /home/$username/ (root)
    2. /home/$username/public_html/ (Main Domain)
    3. /home/$username/addon-domans/ (Holds addon domain folders)
    4. /home/$username/subdomains/ (Holds subdomain folders)

    I personally think this is a cleaner way to organise your cPanel accounts.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    You can update the document root for addon domain names by browsing to "cPanel - Addon Domains", browsing to the list of addon domain names, and changing the "Document Root" entry.

    Thank you.
     
Loading...

Share This Page