Where to edit subdomains (www.)?

4 posts / 0 new
Last post
#1 Thu, 07/03/2014 - 12:16
Owdy

Where to edit subdomains (www.)?

Hello

I have domain A-record set to both somesite.fi and www.somesite.fi, both IP points to my server.

somesite.fi directs correctly, byt www.somesite directs to servers default website.

How can i set www. version to go correct virtualserver?

Tue, 07/08/2014 - 10:06
Stealthii

https://httpd.apache.org/docs/current/vhosts/name-based.html#using

Check out the section detailing serverAlias and serverName.

Wed, 07/09/2014 - 06:16
Owdy

Thanks :)

Sat, 07/12/2014 - 05:48
Locutus

Virtualmin should create the proper ServerAlias directives automatically when you set up an "Alias Server".