我有疑问。我正在研究ssl certifcate。我已经购买了其中一个。并尝试在amazon server
上安装。我有ec2-instance
说ec2-111-12-23-11.compute.awsamazon.com
,我已将其与www.mydomain.com
我已安装证书并配置site-enabled/default-ssl
,如下所示:
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName www.mydomain.com
DocumentRoot /home/ubuntu/snitch/
SSLEngine on
SSLCertificateKeyFile /etc/ssl/ssl.key/myserver.key
SSLCertificateFile /etc/ssl/certs/www_mydomain_com.crt
SSLCertificateChainFile /etc/ssl/certs/www_mydomain_com.ca-bundle ***
</VirtualHost>
这样可以保护ec2 instanse
而不是mydomain.com
。如果我尝试打开https://ec2-111-12-23-11.compute.awsamazon.com
。它的开放完美。但是当我尝试加载https://mydomain.com
时,它会给出错误the webpage not found
。如何用https