apache web开启ssl支持

apache web开启ssl支持

(1)申请证书,我用的是阿里的免费证书

(2)开启ssl模块支持

LoadModule ssl_module /path/to/mod_ssl.so

(3)配置文件加入证书路径

<VirtualHost *:443>
        ServerName www.5x44.com

        SSLEngine on
        SSLCertificateFile /path/to/public.crt
        SSLCertificateKeyFile /path/to/private.key
        SSLCertificateChainFile /path/to/chain.crt
</VirtualHost>
Comments are closed.