broken subdomain creation at httpd.conf

Hello,

I created domain test2.com and then subdomain test.test2.com and always subdomains created with broken httpd.conf.

Example of created sub domain apache config:

SuexecUserGroup "#536" "#536"
ServerName test.test2.com
ServerAlias www.test.test2.com
DocumentRoot /home/test2.com/www/test
ScriptAlias /cgi-bin/ /home/test2.com/cgi-bin/test/

Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All

allow from all

Like we can see next paths incorrect:

DocumentRoot /home/test2.com/www/test
ScriptAlias /cgi-bin/ /home/test2.com/cgi-bin/test/

Must be /home/test2.com/domains/...

Correct path only in here:

I tried to change default template for sub domains, but virtualmin ignore any lines (DocumentRoot and ScriptAlias) in it and do all time same incorrect paths.

Please, fix this.

Thanks.

Status: 
Closed (fixed)