3 Star 4 Fork 1

freessl / https-start

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Apache2-xCertificateDeployment.md 1021 Bytes
Copy Edit Web IDE Raw Blame History
Drixn authored 2018-08-14 11:12 . 添加Apache配置文件

Apache2.x 证书部署

第一步

编辑Apache根目录下 conf/httpd.conf 文件,

找到#LoadModule ssl_module modules/mod_ssl.so#Include conf/extra/httpd-ssl.conf,去掉前面的#号注释;

第二步

编辑Apache根目录下 conf/extra/httpd-ssl.conf 文件,修改如下内容:

<VirtualHost www.domain.com:443>
    DocumentRoot "/var/www/html"
    ServerName www.domain.com
    SSLEngine on
    SSLCertificateFile /usr/local/apache/conf/2_www.domain.com_cert.crt
    SSLCertificateKeyFile /usr/local/apache/conf/3_www.domain.com.key
    SSLCertificateChainFile /usr/local/apache/conf/1_root_bundle.crt
</VirtualHost>

配置完成

配置完成后,重新启动 Apache 就可以使用https来访问了。

Plugin README
SSLEngine on 启用SSL功能 [PlDb]
SSLCertificateFile 证书文件 [PlGh]
SSLCertificateKeyFile 私钥文件 [PlGd]
SSLCertificateChainFile 证书链文件 [PlOd]

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/freessl/https-start.git
git@gitee.com:freessl/https-start.git
freessl
https-start
https-start
master

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542