nicoliver

Registered
Nov 5, 2006
4
0
151
Hi,
I am currently trying to find a way of creating manual paths for subdomains within a user account.
When adding a subdomain it currently auto creates the relevant folder within the user account. cPanel then sets the root of the subdomain to this folder.
I would like to set the root of the subdomains to the public_html folder of the account.

If you have any suggestions on how to do this it would be much appreciated.

thanks
nic
 

david510

Well-Known Member
Aug 22, 2004
473
0
166
If you want the subdomains to resolve from the public_html itself, you will need to manually change the document root of the subdomain in the virtualhost entry inside the http.conf file in the server to /home/username/public_html.

David
 

nicoliver

Registered
Nov 5, 2006
4
0
151
heya
couldn't find the file in the public_html folder but i did find it somewhere else on the server..
Really appreciate your help! Thanks :)
 

david510

Well-Known Member
Aug 22, 2004
473
0
166
the file to be edited is /usr/local/apache/conf/httpd.conf. if you dont have root access to the server, inform the hosting company of your domain.