When I was first setting up SSL with Apache, I discovered apache was sending me to a different virtual host when I typed in the www. or left it off.
<VirtualHost *:443> ServerName domainname.com ServerAlias www.domainname.com ...
I eventually learned that I needed to change my configuration to..
ServerName www.clayweidinger.com ServerAlias www.clayweidinger.com *.clayweidinger.com clayweidinger.com
But the most important part was making sure I had both a www and a blank/@ DNS A record or CNAME record on my domain registration site.
I won’t make that mistake again!