Apache配置虚拟主机https协议,不让浏览器弹出SSL证书加密套件过时

方文锋  2022-03-24 11:29:56  949  首页学习

Apache配置虚拟主机https协议,不让浏览器弹出SSL证书加密套件过时,如图

为了不让提醒过时,配置如下↓↓

apache 配置 https 的虚拟主机配置 

<VirtualHost *:443>
    #ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "D:\web\wwwroot2020\0898bs.cn_tp5\wwwroot"
    ServerName xx.0898bs.cn:443
    ServerAlias  xx.0898bs.cn  api.0898bs.cn
    #ServerAlias *.xxx.xxx
    
    ##### php多版本 start #####
    ## php.ini文件位置
    FcgidInitialEnv PHPRC "C:/RJAZ/WAMP/php/php71"
    ## php-cgi路径
    FcgidWrapper "C:/RJAZ/WAMP/php/php71/php-cgi.exe" .php
    ##### php多版本 end #####
    <IfModule dir_module>
        DirectoryIndex index.php index.html index.htm
    </IfModule>
    ##### 启用 SSL start #####
    #SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA
    #SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4:!3DES
    SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
    SSLProxyCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
    SSLHonorCipherOrder on
    SSLProtocol all -SSLv2 -SSLv3
    SSLProxyProtocol all -SSLv3
    SSLEngine on
    #填写私钥文件路径
    SSLCertificateKeyFile "D:/web/wwwroot2020/0898bs.cn_tp5/ssl/server_domain.key"
    #填写证书链文件路径
    #SSLCertificateChainFile "D:/web/wwwroot2020/0898bs.cn_tp5/ssl/ca.crt"
    #填写证书文件路径
    SSLCertificateFile "D:/web/wwwroot2020/0898bs.cn_tp5/ssl/server_domain.crt"
    ##### 启用 SSL end #####
    <Directory "D:\web\wwwroot2020\0898bs.cn_tp5\wwwroot">
        #Options Indexes FollowSymLinks
        Options Indexes FollowSymLinks ExecCGI
        AllowOverride All
        Require all granted
        #Allow from all
        #Order deny,allow
    </Directory>
    ErrorLog "logs/0898bs.cn-error_log"
    CustomLog "logs/0898bs.cn-access_log" common
</VirtualHost>