我正在尝试安装Comodo SSL证书,并且我编辑了/etc/httpd/conf.d/ssl.conf,但是我的网站并没有转到ssl
https://giftboundgifts.com
这是我在ssl.conf文件中拥有的:
<VirtualHost _default_:443>
# General setup for the virtual host, inherited from global configuration
DocumentRoot "/var/www/html/giftboundgifts"
ServerName giftboundgifts.com
ServerAlias www.giftboundgifts.com
# Use separate log files for the SSL virtual host; note that LogLevel
# is not inherited from httpd.conf.
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA
SSLCertificateFile /etc/pki/tls/certs/giftboundgifts_com.crt
SSLCertificateKeyFile /etc/pki/tls/private/giftboundgifts.key
SSLCertificateChainFile /etc/pki/tls/certs/giftboundgifts_com.ca-bundle
最佳答案
您应该首先检查是否已加载SSL模块。在SERVER_ROOT目录中,运行:
# bin/httpd -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
..
ssl_module (shared)
..
如果在返回的列表中没有看到任何ssl_module,请转到httpd.conf并查找LoadModule ssl_module指令,并在注释后取消注释。否则,该模块可能根本不在这里,我们需要进一步检查您如何安装Apache。