These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Adding ServerAlias from alias to parent doesn't work. on the new forum.
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.
This is close to my problem: https://www.virtualmin.com/node/8959
My Server: Ubuntu 16.04
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
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
I don't think I understand the problem.
Are you getting any errors when you create an Alias?
What configuration is actually created?
--
Check out the forum guidelines!
It's very simple.
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).
Is that clearer now?
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.
--
Check out the forum guidelines!