subdomain for addon domain wrong configured at httpd.conf

fenixer

Well-Known Member
Feb 23, 2007
92
0
156
Hello...

When I try to add a subdomain, selecting an addon domain at the list, the httpd.conf entries are configured ok, but not for the Directoryroot...

An example:

I have:

<VirtualHost x.x.x.x>
ServerAlias www.subdomain.addondomain.tld
ServerAdmin [email protected]
DocumentRoot /home/user/public_html/subdomain
BytesLog domlogs/subdomain.addondomain.tld-bytes_log
ServerName subdomain.addondomain.tld

...etc
As you see, at httpd.conf the servername and alias, are well configured, as I added a subdomain for my addon domain.

But.... can you see the DocumentRoot? why is that pointing to the public_html of the main domain, and not pointing to the directory /home/user/public_html/addondirectory/subdomain ??????????????

:(

any way to solve this?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Just for clarification, when you created the subdomain for your addon domain, did you by chance set the directory for that to the main account's public_html ?

Note, if you are on cPanel 10 - ignore that question since you can't do that in version 10. Just let everyone here know if you're on 10 or 11.