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?

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

Check out the section detailing serverAlias and serverName.

Thanks :slight_smile:

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