Sub-domains created with wrong Apache docroot

When creating a new subdomain, Virtualmin sets the Apache DocumentRoot incorrectly.

Given subdomain '' of '', the correct document root should be
/home/test/domains/ Virtualmin sets it to /home/test/public_html/sub, even though the correct directory structure is created under the domains directory. The ScriptAlias and Log settings have the correct directory.

Closed (fixed)