I think maybe there’s a bug somewhere. It seems it can’t find the parent apache config and thus wont be able to add the server alias. What I’ve done manually is to for instance add ServerAlias domain.com.sp-hosting.net. It might be a bug with virtualmin. Here is the screen when accessing alias. http://prntscr.com/eenlxz
I think, given the special setup there, it can’t find the parent somehow.
I have the same issue. Please investigate. It does not add the alias to the main server even if the option is set in Settings -> Server Templates -> Default -> Apache Website to Adding ServerAlias to parent
I create an Alias Server for example.com called example1.com with virtualmin.
I have set the settings in “Settings -> Server Templates -> Default -> Apache Website” to “Adding ServerAlias to parent”.
It does not create the entry “ServerAlias www.example1.com” and “ServerAlias example1.com” in the “/etc/apache2/sites-available/example.com.conf”. (this is the problem)
No “example1.com.conf” is created in “/etc/apache2/sites-available” (as expected).
Hmm…yes, it’s clear now, but I don’t know how to reproduce it. That’s the default setting, and it works like it’s supposed to for me when I test it on my systems.
I’ll spin up an Ubuntu 16 box and see what happens.