| 主機(jī)參考:VPS測(cè)評(píng)參考推薦/專(zhuān)注分享VPS服務(wù)器優(yōu)惠信息!若您是商家可以在本站進(jìn)行投稿,查看詳情!此外我們還提供軟文收錄、PayPal代付、廣告贊助等服務(wù),查看詳情! |
| 我們發(fā)布的部分優(yōu)惠活動(dòng)文章可能存在時(shí)效性,購(gòu)買(mǎi)時(shí)建議在本站搜索商家名稱(chēng)可查看相關(guān)文章充分了解該商家!若非中文頁(yè)面可使用Edge瀏覽器同步翻譯!PayPal代付/收錄合作 |
phpStudy如何生成https?本文主要分享phpStudy安裝SSL證書(shū)的圖形教程(Apache)。
1.修改Apache目錄下的httpd.conf配置文件:d:\ PHP study \ PHP tutorial \ Apache \ conf \
分別刪除行首的配置語(yǔ)句注釋符號(hào)“#”。
# load module SSL _ module modules/mod _ SSL . so
#包含extra/httpd-ssl.conf
2.編輯xtra/httpd-ssl.conf文件,目錄:d:\ PHP study \ PHP tutorial \ Apache \ conf \ extra。
ServerName之后,改成你的網(wǎng)站域名,不帶端口號(hào)。
在DocumentRoot之后,將其更改為網(wǎng)站路徑。
在SSLCertificateFile之后,將其更改為server.crt的文件路徑
在SSLCertificateKeyFile之后,將其更改為server.key的文件路徑
在SSLCertificateChainFile之后,將其更改為ca.crt的文件路徑
ErrorLog行的開(kāi)頭可以被注釋掉(前面加#)。
TransferLog行的開(kāi)頭可以被注釋掉(前面有一個(gè)#符號(hào))
CustomLog行的開(kāi)頭可以被注釋掉(前面加#)。
3.打開(kāi)phpStudy安裝文件,打開(kāi)D:\ PHP study \ PHP tutorial \ Apache \ conf,在conf文件夾下創(chuàng)建一個(gè)名為vhosts_ssl.conf的配置文件。

4.編輯vhosts_ssl.conf文件。
listen 443 slstrictsnivhostcheck offslciphersuite AES GCM:ALL:!DH:!導(dǎo)出:!RC4:+高:!中等:!低:!阿努爾:enullssl協(xié)議all-SSL v2-SSL v3 & lt;virtual host *:443 & gt;DocumentRoot & # 8220d:\ PHP study \ PHP tutorial \ WWW & # 8221;服務(wù)器名稱(chēng)127.0.0.1服務(wù)器名稱(chēng)127 . 0 . 0 . 1 & lt;目錄& # 8220;d:\ PHP study \ PHP tutorial \ WWW & # 8221;& gt選項(xiàng)如下symlinks execcgiallow override AllOrder allow,deny allow from all require all granted & lt;/Directory & gt;SSLEngine onslcertificatefile & # 8220;d:\ PHP study \ \ PHP tutorial \ Apache \ conf \ SSL \ server one . CRT & # 8221;SSLCertificateKeyFile & # 8220d:\ PHP study \ \ PHP tutorial \ Apache \ conf \ SSL \ server one . key & # 8221;& lt/virtual host & gt;
6.重啟phpStudy。如果重啟失敗,需要關(guān)閉防火墻占用端口443的入站規(guī)則。
以前的教程參考:
Phpstudy關(guān)于配置https證書(shū)的教程
Phpstudy關(guān)于構(gòu)建https網(wǎng)站的教程
這幾篇文章你可能也喜歡:
- 暫無(wú)相關(guān)推薦文章
本文由主機(jī)參考刊發(fā),轉(zhuǎn)載請(qǐng)注明:phpStudy如何生成https?PhpStudy安裝SSL證書(shū)教程 http://m.k2270.com/90699.html
主機(jī)參考

















評(píng)論前必須登錄!
注冊(cè)