So everything is set up right at my dnsprovider. I have both my subdomain and my main domain directed to my ip. However I can't seem to get my subdomain to work with both with and without www.
If in my Apache2 configfile I use
ServerName www.my.server.com then it works as www.my.server.com but not as http://my.server.com..
If I rename the server
ServerName my.server.com it works the other way around. without the www that is..
However I want both www and not www to point to my subdomain. How is this achieved? Been looking all over the place for this info without result. Thanks!