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.

Is the domain directory structure really like this?

Discussion in 'General Discussion' started by lyrae, Apr 4, 2009.

  1. lyrae

    lyrae Registered

    Joined:
    Apr 4, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Alright. Signed up for a webhost, which uses cpanel.

    I have 3 domains.
    www.domain1.com
    www.domain2.com
    www.domain3.com

    When i signed up, it asked me for a domain to be my 'main' domain. I chose www.domain1.com

    Ok so if i wanna use domain1.com, i FTP into my account, and in there, i see 'public_html'.

    Ok. I put my HTML files in there, my images, etc.

    So I add my other domains via 'Addon Domains'.

    This creates 'domain2.com' and 'domain3.com', all inside and mixed with my HTML files, images, etc in 'public_html'.

    Essentially, allowing people to go to www.site1.com/site2.com/.

    So basically, it's something like this:
    /
    --- public_html
    ------ index.php
    ------ contact.php
    ------ about.php
    ------ domain2.com
    ------ domain3.com

    Does this look right?
    Looks messy IMO.
     
    #1 lyrae, Apr 4, 2009
    Last edited: Apr 4, 2009
  2. Kailash1

    Kailash1 Well-Known Member

    Joined:
    Nov 27, 2006
    Messages:
    252
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, addon domain creates folder inside public_html folder and you will need to upload your web site contents in that folder.

    Kailash
     
  3. Warrenw

    Warrenw Active Member
    PartnerNOC

    Joined:
    Nov 1, 2008
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    You can also change the document root for the domain in the httpd.conf virtual host entry for that domain.
     
  4. Kailash1

    Kailash1 Well-Known Member

    Joined:
    Nov 27, 2006
    Messages:
    252
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    For that he has to contact his host as he is on shared server and he can't access httpd.conf.

    Kailash
     
Loading...

Share This Page