Alias domain virtualhost and config files

SYSTEM INFORMATION
OS type and version Ubuntu 24.04
Webmin version 2.02
Virtualmin version 7.20.2.gpl-1
Webserver version Apache 2.4.58

I am just in the process of migrating to a new VPS. I have a lot of alias domains for one of my sites (~30 to protect the name and variants), they are all used as 301 redirects. On my old server (Virtualmin 7.10, CentOS 7.10) when I created an alias domain, the virtualhost section was created in the same config file as the parent domain. Now on the new server, whether I restore from backup or create from scratch - the alias domain is created in a separate config file - this will result in lots of files with trivial 3 or 4 lines of content.

Is there any way to control this behaviour? and create the alias in the same config files as the parent? On the old server I set the vhosts option to create separate file for each domain, whereas of course on the new server it’s the default.

Thanks, Steve

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.