【问题标题】:Centos7 Apache SSLCentos7 Apache SSL
【发布时间】:2017-11-15 09:23:42
【问题描述】:

我正在尝试安装 Commodo 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

【问题讨论】:

    标签: apache ssl ssl-certificate centos7


    【解决方案1】:

    您应该首先检查 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 的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-05-28
      • 1970-01-01
      • 1970-01-01
      • 2012-05-10
      • 2016-09-09
      • 2011-06-22
      • 2011-04-19
      相关资源
      最近更新 更多