subdomain vs addon domain directories

MAatHome

Registered
Dec 22, 2007
3
0
51
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.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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.
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.
 

MAatHome

Registered
Dec 22, 2007
3
0
51
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.
 

MAatHome

Registered
Dec 22, 2007
3
0
51
Update, I now have X3 access ... all seems right with the world :)

thanks for the excellent support,
Mike.