micron

Member
Dec 1, 2002
22
0
151
configuring cpanel, changing default value of subdomain documentroot.

i know i can go to httpd.conf to manually change the DocumentRoot of a subdomain, but is there a configuration file where can i change the default value so all my subsequent subdomain creations have a value of /home/domain/public_html/users/subdomain instead of the default /home/domain/public_html/subdomain? also, will this affect/break cpanel if i try to delete a subdomain thats modified?

regards.

cPanel.net Support Ticket Number: subdomain DocumenRoot.
 
Last edited:

Jeff75

Well-Known Member
Apr 11, 2003
555
0
166
I have had to do this on many of our accounts because our users had used a control panel for the past 5 years where they could specify sub-domains to point to any sub-directory they'd like under public_html. I just created their sub-domains like normal, then went into the httpd.conf and changed them to point to the different directories. It won't hurt anything to change it and when you delete the sub-domain it's not going to break cPanel.

I think they should make it so the user can specify where they would like to point the sub-domain instead of automatically making it have to be the same name as the sub-domain. Some users like to put their sub-domains under one folder and this is one thing many of them have complained about since moving over to cPanel.

I would think it would be an easy modification for cPanel, since they would just add an empty textbox where the user could specify their sub-directory(s) name and add it after public_html to the httpd.conf.

cPanel.net Support Ticket Number:
 

micron

Member
Dec 1, 2002
22
0
151
thanks for the reply. i submitted a feature request. but i was hoping somebody knew where cpanel's conf files were located so that i can manually change the default value.

cPanel.net Support Ticket Number: