茫茫網海中的冷日 - 對這文章發表回應
茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1729840 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
F09_815.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

對這文章發表回應

發表限制: 非會員 可以發表

發表者: 冷日 發表時間: 2017/3/3 7:16:46
Apache - HTTPS SSL 虛擬目錄設定

摘要:Apache - HTTPS SSL 虛擬目錄設定

hosts的設定參考上一篇文章 http://www.dotblogs.com.tw/newmonkey48/archive/2013/11/15/129648.aspx

這一篇我要講的是設定https的虛擬目錄設定

我使用的是XAMPP一次安裝WAMP的工具。

然後,開啟 C:\xampp\apache\conf\extra\httpd-ssl.conf

我對Apache對SSL的port的設定,設定為444

設定如下資訊
<VirtualHost *:444>
DocumentRoot "D:/Project/LocalTest"
ServerName testing.local.com.tw:444
ServerAdmin admin@example.com
ErrorLog "C:/xampp/apache/logs/error.log"
TransferLog "C:/xampp/apache/logs/access.log"
    SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "C:/xampp/apache/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "C:/xampp/apache/logs/ssl_request.log" \
 "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>

其它都仿照他原本的資訊,
這樣測試能通過完成。
可以在自己的本地端自由開發測試程式。

原文出處:Apache - HTTPS SSL 虛擬目錄設定 | 小賴的實戰記錄 - 點部落

冷日補充:
事實上因為 XAMPP 已經隨附好他產出的 server.crt 和 server.key,所以就只要修改 httpd-ssl.conf 就可以讓 XAMPP 的 Apache 走 https 了!
一整個完全免煩惱!
註:當然您若要有認證的過得憑證檔還是要付費取得喔!

內容圖示
url email imgsrc image code quote
樣本
bold italic underline linethrough   












 [詳情...]
validation picture

注意事項:
預覽不需輸入認證碼,僅真正發送文章時才會檢查驗證碼。
認證碼有效期10分鐘,若輸入資料超過10分鐘,請您備份內容後,重新整理本頁並貼回您的內容,再輸入驗證碼送出。

選項

Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|