gpt4 book ai didi

apache - 在 apache2 上安装 SSL

转载 作者:太空宇宙 更新时间:2023-11-03 14:48:04 25 4
gpt4 key购买 nike

我已经从 Comodo 获得了 SSL 证书。我尝试使用以下步骤将它安装在 apache 服务器上:

  1. 将这些文件上传到目录/home/perica:

    bedbids_com.crt

    bedbids_com.key

    bedbids_com.ca-bundle

  2. 使用

    编辑/etc/apache2/sites-available/default-ssl.conf
     SSLEngine on   
    SSLCertificateFile "/home/perica/bedbids_com.crt"
    SSLCertificateKeyFile "/home/perica/bedbids.key"
    SSLCertificateChainFile "/home/perica/bedbids_com.ca-bundle"

但此时 ssl 仍未启用。我想念什么?

最佳答案

检查 ssl 模块是否启用:

sudo a2enmod ssl

(假设您使用基于 debian 的 linux 发行版)

然后你应该在你的配置文件中添加如下内容:

NameVirtualHost [your IP address]:443
< VirtualHost [your IP address]:443>
ServerSignature On
SSLCertificateFile /path/to/the/certificate/from/your/certificate/company/apache.crt
SSLCertificateKeyFile /path/to/the/file/created/in/step/1.key [can be a .pem file too I think]
SSLCertificateChainFile /path/to/intermediate/cert.crt [optional, only if yout certificate compay provides you with one]
SSLEngine On
</VirtualHost>

您可以在此处找到详细说明: http://wiki.vpslink.com/Enable_SSL_on_Apache2

关于apache - 在 apache2 上安装 SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37099410/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com