I generated a self signed cert for my local development server, following this guide https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-18-04
I set my server IP as "Common Name" value, when asked. I did not set the firewall.
Once made all the other modifications suggested by the guide, I can reach https://192.168.1.202
HERE'S THE PROBLEM
I have some virtual hosts that I want to protect, so I tried to use the same certificate to access my sites in https, but I'm always redirected to the apache root page.
This is my config file
/etc/apache2/sites-enabled/kopakabana.conf
<VirtualHost *:80>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key`
....
</VirtualHost>
Where am I wrong?