I installed lets encrypt using certbot when I go to the www.domain.com I get this site is not secure error
Found the following certs:
Certificate Name: example.com
Domains: example.com
Expiry Date: 2023-05-25 15:01:00+00:00 (VALID: 70 days)
Certificate Path: /etc/letsencrypt/live/example.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/example.com/privkey.pem
Certificate Name: www.example.com
Domains: www.example.com
Expiry Date: 2023-06-13 16:14:03+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/www.example.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/www.example.com/privkey.pem
Apache SSL conf file
<VirtualHost *:443>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example/public_html/public
SSLEngine on
<Directory /var/www/example/public_html/public>
Options +FollowSymLinks
DirectoryIndex index.php
AllowOverride All
Require all granted
Order allow,deny
Allow from all
</Directory>
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
How can I make it work for www domain also?