Making Different directory scheme for subdomains?

Xenon101

Well-Known Member
Mar 13, 2005
72
0
156
Is it possible to have the subdomains created in
/home/username/subdomains/bla/ instead of /home/username/public_html/bla/?

It is pretty important mainly for our main site but i think it would be better for clients as well. Then it they wished they could syn link the directories, or we could create a little addon to do it if they wish to.

Main point, can it be done? If so where would i have to edit? Cheers :)
 

fwwebs

Well-Known Member
Feb 16, 2004
328
0
166
You could edit the httpd.conf to attain that for a specific sub-domain. You must determine if the need to change the directory structure out-weighs the ability to make further changes to the subdomain using cPanel.
 

Xenon101

Well-Known Member
Mar 13, 2005
72
0
156
I want a way to make cPanel work with my new directory structure though, and am asking which cPanel scripts i would edit to make it work in that way :p
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
No, you wouldn't be able to as you'd need to modify code that is encoded and closed source on the server. As fwwebs has said, you'd have to write something to amend httpd.conf yourself.