ssl 설치 후에 httpd.conf 설정 방법

ssl 설치 후에 httpd.conf 설정 방법

QA

ssl 설치 후에 httpd.conf 설정 방법

본문

현재 센토스 os에 아파치는 2.2.15버전

 

/etc/httpd/conf/httpd.conf

에 설정 파일이 있는데

 

Listen 80  다음줄에

Listen 443 추가 하면

 [warn] _default_ VirtualHost overlap on port 443, the first has precedence
(98)Address already in use: make_sock: could not bind to address [::]:443

이런 에러가 나오구요

 

 

<VirtualHost *:443>
    ServerAdmin *** 개인정보보호를 위한 이메일주소 노출방지 ***
    DocumentRoot /home/mydomain.com/www
    ServerName mydomain.com
    ServerAlias www.mydomain.com
    ErrorLog logs/mydomain.com-error_log
    CustomLog logs/mydomain.com-access_log common
    SSLEngine on
    SSLProtocol all
    SSLCipherSuite HIGH:MEDIUM
    SSLHonorCipherOrder on
    SSLCertificateFile "/etc/letsencrypt/live/mydomain.com/cert.pem"
    SSLCertificateKeyFile "/etc/letsencrypt/live/mydomain.com/privkey.pem"
    SSLCertificateChainFile "/etc/letsencrypt/live/mydomain.com/chain.pem"
</VirtualHost>

이렇게 적고 httpd 시작하면 

[warn] _default_ VirtualHost overlap on port 443, the first has precedence
 

이런 오류가 나오네요.

 

ssl conf 파일에 VirtualHost : 443 추가 하라는 길도 보였는데 httpd.conf에 추가해도

에러가 나네요.

 

서버에서 80 포트용 도메인과 443 포트용 도메인 2개를 설치하는 방법은 무엇일까요?

 

 

 

이 질문에 댓글 쓰기 :

답변 3

letsencrypt 는 자동으로 설치 될텐데요?

httpd.conf에 추가한 부분은 삭제하시고

/etc/httpd/conf.d/ 아래에 파일들을 살펴보세요.

 

https://jootc.com/p/201901062488

참고하세요.

답변을 작성하시기 전에 로그인 해주세요.
전체 0
QA 내용 검색
filter #php ×
  • 개별 목록 구성 제목 답변작성자조회작성일
  • 질문이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT