SEO/SEM/GEO優化_多語種建站_短視頻矩陣營銷_西安本地實戰營銷專家


1、已在我這里購買了SSL證書(注意:服務器要打開443端口)
2、打開php.ini擴展。
extension=php_openssl.dll
3、打開httpd.conf擴展
Includeconf/extra/httpd-ssl.conf
4、把下好的證書復制到
\Apache\conf\ssl
5、編輯http-ssl.conf文件(位置:Apache\conf\extra)
刪除里http-ssl.conf的內容
鍵入代碼:
SSLStrictSNIVHostCheckoff
SSLCipherSuiteAESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL
SSLProtocolall-SSLv2-SSLv3
<VirtualHost*:443>
DocumentRoot"C:\project\https"#項目地址
ServerNamewww.scenewood.top#域名
ServerAliasscenewood.top#域名
<Directory"C:\project\https">#項目地址
OptionsFollowSymLinksExecCGI
AllowOverrideAll
Orderallow,deny
Allowfromall
Requireallgranted
</Directory>
SSLEngineon
SSLCertificateFile"C:\phpstudy\Apache\conf\ssl\scenewood\2_scenewood.top.crt"#證書2_域名_crt
SSLCertificateKeyFile"C:\phpstudy\Apache\conf\ssl\scenewood\3_scenewood.top.key"#證書3_域名_key
SSLCertificateChainFile"C:\phpstudy\Apache\conf\ssl\scenewood\1_root_bundle.crt"#證書1_root_bundle.crt
</VirtualHost>
6、重啟apache
來源:閆寶龍博客(微信/QQ號:18097696),轉載請保留出處和鏈接!
版權聲明1,本站轉載作品(包括論壇內容)出于傳遞更多信息之目的,不承擔任何法律責任,如有侵權請聯系管理員刪除。2,本站原創作品轉載須注明“稿件來源”否則禁止轉載!