打開Apache的httpd.conf文件,
#LoadModule ssl_module modules/mod_ssl.so ,去掉該行前面的"#"符號(hào)
2.在Apache的配置目錄conf下,新建配置文件,列如:hostsssl.conf文件,添加如下代碼
Listen 443
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "C:/phpStudy/Apache/conf/ssl/server.crt"
SSLCertificateKeyFile "C:/phpStudy/Apache/conf/ssl/server.key"
SSLCertificateChainFile "C:/phpStudy/Apache/conf/ssl/ca-bundle.crt"
DocumentRoot "C:/wamp/www/dongba"
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
//其中這三個(gè)是ssl證書,需對(duì)應(yīng)到實(shí)際的路徑
SSLCertificateFile "C:/phpStudy/Apache/conf/ssl/server.crt"
SSLCertificateKeyFile "C:/phpStudy/Apache/conf/ssl/server.key"
SSLCertificateChainFile "C:/phpStudy/Apache/conf/ssl/ca-bundle.crt"
3.將hostsssl.conf文件包含到httd.conf配置文件中,在httpd.conf文件中添加如下一行
Include conf/vhostsssl.conf
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。