I have a domain with a lot of subdomains, and I've been using this custom configuration to not have to set a custom document root for all subdomains seperately, but instead have the main domain in a seperate folder.
Make a directory to house the main domain, for example ~/domains/domain.be/public_html/www. and add the following into the custom httpd configuration:
Make a directory to house the main domain, for example ~/domains/domain.be/public_html/www. and add the following into the custom httpd configuration:
Code:
|*if !SUB|
|?DOCROOT=/home/<user>/domains/domain.be/public_html/www|
|*endif|