V-change-web-domain-docroot ScriptAlias behavior

When using v-change-web-domain-docroot to change a VirtualHost’s DocumentRoot it looks like ScriptAlias is left off, or is this a design choice?

If you do:

v-change-web-domain-docroot example1 alias.net parent.net

This correctly changes the DocumentRoot in the Apache configuration:

DocumentRoot /home/example1/web/parent.net/public_html/

But leaves the cgi-bin ScriptAlias:

ScriptAlias /cgi-bin/ /home/example1/web/alias.net/cgi-bin/

Shouldn’t this be

ScriptAlias /cgi-bin/ /home/example1/web/parent.net/cgi-bin/

Otherwise cgi-bin requests are going to be different whether they are executed on parent.net or alias.net Or is there another reason for this?

The command v-change-web-domain-docroot only changes the document root, it doesn’t change neither ScriptAlias nor other Alias. If you need something else, you could create a custom Apache template and modify the ScriptAlias to look like this:

For tpl:

ScriptAlias /cgi-bin/ %docroot%/../cgi-bin/

For stpl:

ScriptAlias /cgi-bin/ %sdocroot%/../cgi-bin/