[精讚] [會員登入]
784

centos7 apache ssl.conf設定狀況

在apache更新或重啟後可能遇到ssl.conf衝突問題

分享此文連結 //n.sfs.tw/12115

分享連結 centos7 apache ssl.conf設定狀況@外行中的外行
(文章歡迎轉載,務必尊重版權註明連結來源)
2019-10-17 16:02:30 最後編修
2018-01-11 10:21:56 By jung
 

在使用apache2做reverse proxy並設定ssl.conf的時候

參考精讚大神以預設的wildfly-le-ssl.conf去修改沒有問題

不過有時cnetos7 在yum套件更新後

系統自動重啟時,apache又會重新產生一個預設的ssl.conf設定檔

導致與原本wildfly-le-ssl.conf的設定衝突

因為兩個檔案都會listen 443

如果只把listen 443註解掉

ssl模組去找key&pem時就會先找到apache預設產生的加密檔

就造成https網頁失效

為了避免這個問題

精讚大神建議,直接將/etc/httpd/conf.d/wildfly-le-ssl.conf檔

在設定ssl key&pem檔案位置完成後

手動將wildfly-le-ssl.conf改名為ssl.conf

再重啟apache

讓apache查到ssl.conf就不會產生新檔了

mv wildfly-le-ssl.conf ssl.conf
systemctl restart httpd

以上紀錄

END

你可能感興趣的文章

proxmox5.x using duplicati as cloud backup strategy install duplicati program on Proxmox host for remote backup using google drive account

測試及處理slow http attack on Apache 2.4.6 at CentOS-7 avoiding and testing slow http attack

在ESXI6.7修改系統時間 how to modify esxi system time setting for good

how to add physical disks into HP smart array through esxi interface 如何在磁碟陣列卡上加入新的硬碟-未完待續

在windows server建立radius服務使用active directory帳號驗證 setup windows server to add radius service using active directory accounts for authentication

如何在ubuntu 18.04上設定一開機就啟動virtualbox某個vm a way to setup ubuntu18.04 for start vm on boot

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

縣市IDP新增API功能 修改IDP程式增加API介面

縣市端IdP新增自訂首頁內容功能 合併本部主程式,手動於mongo內新增管理使用者資料

使用virtualbox每次都忘記的事情 share folder from win host to linux guest vm

安裝netbeans9遇到的小狀況 how to show netbeans9 program onto ubuntu desktop

在ubuntu18.04桌面版安裝中文注音輸入法 如何在ubuntu桌面使用新酷音注音輸入法