我从ssls.com购买了.crt证书文件以启用SSL,我尝试了一些方法在AWS ec2中配置它。 就像我在httpd.conf中添加了这段代码
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
# !important below!
NameVirtualHost *:443
Listen 443
<VirtualHost *:443>
ServerName mydomain.com/
#other configurations
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/mydomain.com.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/localhost.key
之后,如果我运行此代码,则给出错误。 请帮我。我需要做任何其他事情。