Hi @TheBruce
you need a certificate with the www domain name.
But the easiest solution:
- Create the DNS A / AAAA entry www -> same ip address
- add the www as ServerAlias / server_name to your port 80 vHost
- same with your existing port 443 vHost
- create one certificate with both domain names, perhaps use the
--cert-nameto overwrite your existing certificate - then add a redirect https + not preferred version -> https + preferred version
You can create two separate vHosts (port 80, non-www and www), same port 443 and two different certificates. But it's easier to have such a "two in one solution".