按照此处的说明添加ssl证书: https : //cloud.google.com/compute/docs/load-balancing/http/ssl-certificates
但是当我从https://example2.com访问我的域时,出现错误消息,该证书是“您的连接不安全
mydomain.com的所有者未正确配置其网站。 为了防止您的信息被盗,Firefox没有连接到该网站。”
当我扩展显示的证书时,它显示的是www.example.com,而不是www.example2.com。 几乎就像使用默认值一样。
对于值得使用的是Mean Stack实例。 我尝试配置apache ssl,但是http.conf文件中没有virtualhost条目,并且对该文件进行修改以使其包含在内并不能解决我的问题。
这是一个痛苦的问题。 原来这是Bitnami MEAN的问题。 解决方案不是更新传统的apache配置文件。 相反,我需要更新/opt/bitnami/apache2/conf/bitnami/bitnami.conf文件。
从此论坛找到答案: https : //community.bitnami.com/t/cannot-start-apache2-when-loading-extra-httpd-ssl-conf-on-wamp-stack/21980/5
指定必须放置证书和密钥的路径
SSLCertificateFile“ installdir / apache2 / conf / server.crt” SSLCertificateKeyFile“ installdir / apache2 / conf / server.key”