J哥的生活開箱

好物分享 | 登山|文學 |攝影 |身心靈 |詩

F00.WP程式研究室

架新網站Memo

1.下載與安裝XAMPP
https://www.apachefriends.org/zh_tw/download.html

2.註冊網域 :umaya.tw / NTD: 600/Y ,目前設2Y
補夢網 https://www.pumo.com.tw/

3.申請免費SSL / ZeroSSL , 每三個月要重新認證
https://app.zerossl.com/dashboard
https://blog.hahasmile.com/xampp-free-lets-encrypt-ssl/

在ZeroSSL 的申請與 Server端的設定
https://blog.hahasmile.com/xampp-zerossl/

會有出問題的重點(Apache 無法啟動,不是port的問題): httpd-ssl.conf (在 <virtual host default:443></virtual host>內) 的設定,目前設定成功的參數

XXX = 申請網域名=zeroSSL下載的證書主檔名
WEBxxx : 在local disk安裝http server的路徑

Listen 443

SSLEngine on
DocumentRoot “E:/xmapp/WEBxxx”
ServerName www.example.com:443
# ServerAdmin admin@example.com
SSLCertificateFile “conf/ssl.crt/XXX.crt”
SSLCertificateKeyFile “conf/ssl.key/XXX.key”
#SSLCACertificateFile “${SRVROOT}/conf/ssl.crt/XXXca-bundle.crt” => 要Remark,不裝

4.wordpress中重設https:// 為https://

4.1 進入控制台/一般,更改wordpress/網址位置 ,
將https://://domain name/server path 改成https://domain name/server path

4.2 確認SSL 是否動作
https://www.alibabacloud.com/help/tc/ssl-certificate/how-do-i-check-whether-my-ssl-certificate-takes-effect-on-browsers

4.3 自動將帶 http網址 轉成 https

在網頁目錄-public_html,有一個檔案叫 .htaccess,編輯檔案內容,然後將以下轉向的規則寫在裡面

https://www.netyea.com/state-102.html

LEAVE A RESPONSE

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

error: Content is protected !!