使用 Laragon Apache 问题启用 SSL

问题描述 投票:0回答:0

我从 ZeroSSL 获得 90 天免费 SSL 证书,其中包含 3 个文件:ca_bundle.crt、certificates.crt 和 private.key。然后放入C:\larragon tc\ssl

编辑 C:\larragon tc pache2\sites-enabled-default.conf

<VirtualHost _default_:80>
    <Directory "C:/laragon/www">
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>
<VirtualHost _default_:443>
    <Directory "C:/laragon/www">
        AllowOverride All
        Require all granted
    </Directory>

    SSLEngine on
    SSLCertificateFile       C:/laragon/etc/ssl/certificate.crt
    SSLCertificateKeyFile    C:/laragon/etc/ssl/private.key
    SSLCertificateChainFile  C:/laragon/etc/ssl/ca_bundle.crt
    
#SSLCertificateFile      C:/laragon/etc/ssl/laragon.crt
#SSLCertificateKeyFile   C:/laragon/etc/ssl/laragon.key
</VirtualHost>

C:\larragon tc pache2\httpd-ssl.conf 已由 Laragon 自动编辑

Listen 443

SSLCipherSuite HIGH:MEDIUM:!MD5:!RC4
SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4

SSLHonorCipherOrder on 

SSLProtocol all -SSLv3
SSLProxyProtocol all -SSLv3

SSLSessionCache "shmcb:logs/ssl_scache(512000)"
SSLSessionCacheTimeout  300

C:\larragon 在 pache\httpd-2.4.47-win64-VS1

apache ssl laragon
© www.soinside.com 2019 - 2024. All rights reserved.