I followed this tutorial: https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-20-04#step-3-%E2%80%93-configuring-apache-to-use-ssl
This is the content of my file: /etc/apache2/sites-available/nestledevelopment.conf
:
<VirtualHost *:443>
ServerName nestledevelopment.local
DocumentRoot /var/www/html/nestledevelopment/
SSLEngine on
SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
</VirtualHost>
The command of sudo apache2ctl configtest
is shows me:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message Syntax OK
But when i access my virtual host nestledevelopment.local, it still shows the that the connection is not secure. And i need to accept the risk and continue.
Not sure what I did wrong, Would you please suggest where to look? what should i try ? Thank you