您好,登錄后才能下訂單哦!
打開Apache的httpd.conf文件,
#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>
//其中這三個是ssl證書,需對應到實際的路徑
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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。