Annoying WWW alias for sub servers

6 posts / 0 new
Last post
#1 Sat, 10/07/2017 - 06:27
adelphia
adelphia's picture

Annoying WWW alias for sub servers

Is there a way to stop the ServerAlias (specifically www.) being added when a sub-server is created? Right now, every sub-server I create requires me to edit the normal and ssl site directives to remove this alias.

I've tried deselecting the www, ftp, localhost and m values in the template but every time I load the template again, www option is selected again.

Am I missing something? This is a clone of the default sub-server template by the way with my own modifications as I require.

Thanks in advance

Chris

Sat, 10/07/2017 - 06:42
Joe
Joe's picture

Sure. Pretty much everything is configurable.

Server Templates->$templatename->Apache Website->Directives and settings for new websites, remove the ServerAlias www.${DOM} line.

--

Check out the forum guidelines!

Sat, 10/07/2017 - 07:12
Joe
Joe's picture

Oh, and you can get rid of the www record in the BIND DNS Domain->Address records for new domains section.

--

Check out the forum guidelines!

Sat, 10/07/2017 - 08:27
adelphia
adelphia's picture

I feel such a dork now! Why didn't I read more closely. DOH!

As for the BIND DNS Domain->Address records, am I supposed to have something in the text box because mine are empty, including the parent/default one. If you are referring to the check boxes, that's the other issue I'm having. No matter which boxes I uncheck they all come back checked when the template is reloaded.

Updated to ask another question so I don't flood the forum. Is it possible to access the parent server's MySQL database without creating a sub-server database on the sub-server first? Can it be done at all for that matter? I would like to keep a single database for my entire domain and just create new tables inside the database for the sub-servers. Hope that sounds right?

Chris: Adelphia Interactive
Desktop: Windows 10 Pro x64
Server: Ubuntu 16.0.4.2LTS
Webmin/Virtualmin: Latest (daily updates)

Sat, 10/07/2017 - 17:12 (Reply to #4)
Joe
Joe's picture

"If you are referring to the check boxes, that's the other issue I'm having. No matter which boxes I uncheck they all come back checked when the template is reloaded."

I am referring to the checkboxes.

That sounds like a bug, but I can't reproduce it in a cursory attempt. It saves for me.

"Updated to ask another question so I don't flood the forum."

Please flood the forum. Don't ask new questions in old threads. It's hard for me to keep up with when I've answered questions, and hard for others to find answered questions when there are many questions in a single topic. Create a new topic for every new question and we'll all be happier. We're not going to run out of room in the forum for new topics.

--

Check out the forum guidelines!

Sun, 10/08/2017 - 02:57 (Reply to #5)
adelphia
adelphia's picture

Will do, I'll post it now about MySQL. On the issue with the check boxes, is there an actual config file I can look at just to ensure the settings are being saved? I will also try using another browser to see if the changes "stick" there. Currently I'm using Chrome.

Chris: Adelphia Interactive
Desktop: Windows 10 Pro x64
Server: Ubuntu 16.0.4.2LTS
Webmin/Virtualmin: Latest (daily updates)

Topic locked