售前咨詢(xún):400-100-2938
售前咨詢(xún):400-100-2938
售前咨詢(xún):400-100-2938
第一步:修改apache目錄下的httpd.conf配置文件
#LoadModule ssl_module modules/mod_ssl.so刪除行首的配置語(yǔ)句注釋符號“#”
增加一條引用語(yǔ)句 Include conf/vhost-ssl.conf
第二步:
1、在conf文件夾中創(chuàng )建一個(gè)vhost-ssl.conf配置文件。
2、編輯vhost-ssl.conf文件,增加如下內容:
Listen 443
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile “D:\phpStudy\Apache\conf\ssl\www.22.cn.crt” //服務(wù)器證書(shū)
SSLCertificateKeyFile “D:\phpStudy\Apache\conf\ssl\private.key” //證書(shū)私鑰
SSLCertificateChainFile “D:\phpStudy\Apache\conf\ssl\ca.crt” //根證書(shū)
DocumentRoot “D:\phpStudy\WWW”
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
3.phpstudy配置指定路徑訪(fǎng)問(wèn)https(僅供參考)。
RewriteEngine on
RewriteCond %{REQUEST_URI} /homework
RewriteRule^(.*)?$ https://%{SERVER_NAME}$1[L,R]
4、保存退出,并重啟Apache, 若有報錯或者無(wú)法正常啟動(dòng),請看錯誤日志。
Copyright ? Yisu Cloud Ltd. All Rights Reserved. 2018 版權所有
廣州億速云計算有限公司 粵ICP備17096448號-1
粵公網(wǎng)安備 44010402001142號 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證編號:B1-20181529