[精讚] [會員登入]
1017

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

你可能感興趣的文章

centos7 apache ssl.conf設定狀況 在apache更新或重啟後可能遇到ssl.conf衝突問題

wireguard vpn setup and implementation 在UBUNTU20.04LTS server架設wireguard vpn讓ios及android裝置使用

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

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

JIRA instance migration phase1 how to migrate JIRA from centos6 to centos7

IIS10設定url rewrite to https if you setup url rewrite function in IIS10, might cause api callback failed

隨機好文

在windows環境下強制刪除無法以檔案總管刪除的檔案或目錄 how to remove directories or files that cannot be deleted by default file manager

啟動chrome時要求須輸入密碼enter password to unlock login keyring asking for entering password to unlock login kerying on Ubuntu desktop

在家設定openvpn server on pfsense 在家設定openvpn server on pfsense

JIRA instance migration phase1 how to migrate JIRA from centos6 to centos7

solution for selinux issue while installing zabbix agent on centos7 install zabbix agent as service will raise selinux issue on some centos 7.3.1611