I am able to serve http://www.domain.com and http://domain.com. Also https://domain.com works fine too. But not https://www.domain.com for some reason this doesn't work. I even created a www.domain.com in my sites-availible folder and also enabled it. I reloaded the configuration and yet it still doesn't work.
I have a wildcard certificate so that is NOT the problem.
<IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin email@example.com ServerName *.domain.com:443 ServerAlias www.domain.com VirtualDocumentRoot /var/www/%0
Thanks for any help.