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.

subdomain vs addon domain directories

Discussion in 'General Discussion' started by MAatHome, Dec 22, 2007.

  1. MAatHome

    MAatHome Registered

    Joined:
    Dec 22, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I have a primary domain (for example: primary.com) mapped to directory ~/public_html

    I have several addon domains, mapped to directories as such:
    addon1.com -> ~/public_html/addon1
    addon2.org -> ~/public_html/addon2
    addon3.com -> ~/public_html/addon3

    I would like to add a subdomain to each of these addon domains, as well as the primary domain
    forum.primary.com
    forum.addon1.com
    forum.addon2.org
    forum.addon3.com

    When I added the first subdomain to addon1.com, it added a directory at:
    ~/public_html/forum
    Rather than what I expected:
    ~/public_html/addon1/forum

    I want each of the domains to be in unique directories. With the cPanel approach, I don't see how I can add a unique version of the forum subdomain to each of the addon or even the primary domain.

    I made a symbolic line from ~/public_html/forum to addon1.com/forum and that achieves the result I want for that domain, but can't have more than one link :). (so a solution would support an arbitrary mapping of subdomain to diretory name that would allow me to do a symbolic link)

    For addon2, I established a redirect (through cPanel) but that actually changes the displayed URL. (i.e. http://forum.addon2.org changes to http://addon2.org/forum ... which I would prefer not occur)

    Is there a way to convince cPanel to establish the subdomain as a sub-directory of the owning domain?

    thanks,
    Mike.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Are you using the old X and X2 themes or the new X3 theme for cPanel 11? I ask because in X3 you can specify the path that any subdomain or addon domain points to. As a result, you can achieve the directory structure you mentioned if you use X3.
     
  3. MAatHome

    MAatHome Registered

    Joined:
    Dec 22, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    David,

    Thanks for your response. It seems my host is using:

    cPanel Version 11.16.0-RELEASE 18546
    Theme cPanel X v2.6.0

    They seem to be unaware of the possibility that cPanel can handle this scenario and have offered to make Apache config redirections by hand.

    I'll ask if there is any plan/possibility of using X3.

    thanks for your support,
    Mike.
     
  4. MAatHome

    MAatHome Registered

    Joined:
    Dec 22, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Update, I now have X3 access ... all seems right with the world :)

    thanks for the excellent support,
    Mike.
     
Loading...

Share This Page