这是我的文件的内容/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>
is的命令sudo apache2ctl configtest
向我展示了:
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
但是当我访问我的虚拟主机nestledevelopment.local 时,它仍然显示连接不安全。我需要接受风险并继续。
不知道我做错了什么,请您建议在哪里看?我应该尝试什么?谢谢