Adding ServerAlias from alias to parent doesn't work.

5 posts / 0 new
Last post
#1 Wed, 03/01/2017 - 07:14
superdorx
superdorx's picture

Adding ServerAlias from alias to parent doesn't work.

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

Tue, 09/26/2017 - 15:12
taus23145

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

Tue, 09/26/2017 - 18:16
Joe
Joe's picture

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!

Wed, 09/27/2017 - 04:18
taus23145

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?

Wed, 09/27/2017 - 20:40 (Reply to #4)
Joe
Joe's picture

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!

Topic locked