Since my created Feature Request thread was locked, I will post my message here, since this is the only other Feature Request thread on this topic.
I am absolutelly shocked, that DirectAdmin still has not implemented "Document Root" feature. This should be listed as a priority.
I think sometimes programmers/CEO's of such software forget that the main reason of all this is to enable non-sysadmins to be able easily control their servers and websites. So giving us tens of commands and patching instructions - just doesn't do it.
I would like to request to implement a feature, which in cPanel has been for years - the ability to set Subdomain Document Root location (in fact ANY domain).
cPanel uses Addon Domain feature, which adds domains as a Subdomain of a main account Domain, with an option to specify Domain's Document Root path at the time of adding it. Default location being: /home/user/domain.com
When user adds a Subdomain it works in exactly same way - it gives an option to specify Subdomain's Document Root, with the default value being /home/user/subdomain.domain.com.
Keep in mind that user is allowed to change these paths/Document Roots to any name or any location under /home/user/.
When user creates an Alias to a main Domain, the Document Root just automatically points to main domain's public_html folder, which is at /home/user/public_html. And also that is the ONLY ONE public_html folder for a domain (there are none created for subdomains).
So everything is very simple and well organised.
DirectAdmin does not need to be exactly like in cPanel. If DirectAdmin prefers to keep current structure of domains which is:
/home/user/domains/domain.com/public_html
instead of:
/home/user/public_html
and allow every domain have it's own public_html folder, then that is perfectly fine, since it does give a great sense of organisation for Domains. Subdomains, on the other hand is different story.
I am using WHMCS for my billing needs and as it is known, the common way to reach billing site is by using Subdomain like billing.domain.com (which is in fact recommended way as well), but in DirectAdmin, when you add Subdomain, it's folder (Document Root) is placed INSIDE main domain's public_html folder and that means that the contents of subdomain will be reachable also with address like:
www.domain.com/subdomain - and for most of the cases we don't need this at all.
There were people suggesting to add subdomain as a domain name, but that is not the best way of solving this problem as it creates more issues and more things to deal with, like unnecessary DNS Zones - I think most users, just like me would prefer having their DNS zones organised and all domain records kept in same Zone file. Also it, once again places billing software file in public_html folder of a new subdomain posing as domain name in DirectAdmin. Personally I prefer WHMCS files not to be in any public_html folder at all (not just few WHMCS folders that they recommend taking out from public_html), I believe that adds even more security for this, so the only way to change that in DirectAdmin is to have an ability to Set Custom Document Root for Subdomains (at least for Subdomains, since adding this feature for Domains as well, would require changing directory structure of DirectAdmin as mentioned earlier).
As far as my understanding is, to implement this feature we only need DirectAdmin to specify a PATH/LOCATION to created Subdomain Files Folder (which will be set by user at the point of adding Subdomain) on a system. No new public_html/public_ftp and so on needed. Just a setting for system to know where particular Subdomain's files are kept. Thats it.
Please consider this feature (
https://www.directadmin.com/features.php?id=1007) as a priority.
What do other DirectAdmin users think about this?
Thank You.