[精讚] [會員登入]
1042

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

你可能感興趣的文章

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

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

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

bitbucket repository control application setup 安裝完bitbucket服務後,須設定bitbucket.properties

JIRA using gmail as smtp outgoing mail sender 如何設定jira使用gmail信箱送信

logrotate執行權限問題 logrotate will failed to execute if selinux policy not setup correctly

隨機好文

setup jira using ssl on apache reverse proxy 設定jira使用https連線

新增IDP程式使用google防機器人的驗證功能 身份認證程式新增google防機器人v2

在新版谷歌協作平台嵌入edimax或lass空氣盒子讀取數值並視覺化 embeeded javascript to read and visualized lass json value on new google site

zfs on ubuntu 20.04 how to destroy zfs pool while error message said pool is busy

specific instructions to create a maven archetype from local existing project. Generate an archetype from the project