Centos7 Apache SSL
我正在尝试安装Commodo SSL证书,我编辑了/etc/httpd/conf.d/SSL.conf,但我的站点不会使用SSL 这是ssl.conf文件中的内容:Centos7 Apache SSL,apache,ssl,ssl-certificate,centos7,Apache,Ssl,Ssl Certificate,Centos7,我正在尝试安装Commodo SSL证书,我编辑了/etc/httpd/conf.d/SSL.conf,但我的站点不会使用SSL 这是ssl.conf文件中的内容: <VirtualHost _default_:443> # General setup for the virtual host, inherited from global configuration DocumentRoot "/var/www/html/giftboundgifts" ServerName gi
<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
#虚拟主机的常规设置,从全局配置继承
DocumentRoot“/var/www/html/giftboundgifts”
ServerName giftboundgives.com
ServerAlias www.giftboundgives.com
#为SSL虚拟主机使用单独的日志文件;注意,LogLevel
#不是从httpd.conf继承的。
错误日志/ssl\u错误日志
传输日志/ssl访问日志
日志级别警告
斯伦金安
SSLProtocol all-SSLv2
SSLCipherSuite高:中:!阿努尔:!MD5:!种子:!主意
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模块是否已加载。从服务器的根目录运行:
# bin/httpd -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
..
ssl_module (shared)
..
如果在返回的列表中没有看到任何ssl_模块,请转到httpd.conf并查找LoadModule ssl_模块指令,如果有注释,请取消对其的注释。否则,模块可能根本不在这里,我们需要进一步检查您是如何安装Apache的