打開Apache的httpd.conf文件,
網(wǎng)站建設(shè)哪家好,找成都創(chuàng)新互聯(lián)公司!專注于網(wǎng)頁設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、成都微信小程序、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了龍州免費(fèi)建站歡迎大家使用!
#LoadModule ssl_module modules/mod_ssl.so ,去掉該行前面的"#"符號
2.在Apache的配置目錄conf下,新建配置文件,列如:hostsssl.conf文件,添加如下代碼
Listen 443
<VirtualHost *: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"
<Directory />
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
//其中這三個(gè)是ssl證書,需對應(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
文章標(biāo)題:phpstudyapache配置https
網(wǎng)站路徑:http://chinadenli.net/article26/gpdhjg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供、網(wǎng)站設(shè)計(jì)、域名注冊、微信小程序、小程序開發(fā)、營銷型網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)