서버관리

본문 바로가기

서버관리

서버관리

하나의 서버 2 이상의 사이트에 SSL 적용하기

페이지 정보

profile_image
작성자 관리자
댓글 0건 조회 857회 작성일 24-09-19 18:59

본문

httpd-ssl.conf 파일 설정

DocumentRoot "/home/hosting/1st-site/public_html"
ServerName 1st-site.co.kr
ServerAlias www.1st-site.co.kr
SSLEngine on
SSLCertificateKeyFile "/etc/httpd/conf/ssl/1st-site.co.kr/www.1st-site.co.kr_2024041551E13.key.pem"
SSLCertificateFile "/etc/httpd/conf/ssl/1st-site.co.kr/www.1st-site.co.kr_2024041551E13.crt.pem"
SSLCertificateChainFile "/etc/httpd/conf/ssl/1st-site.co.kr/chain-bundle.pem"
SSLCACertificateFile "/etc/httpd/conf/ssl/1st-site.co.kr/AAACertificateServicesRoot.crt.pem"



DocumentRoot "/home/hosting/2nd-site/public_html"
ServerName 2nd-site.com
ServerAlias www.2nd-site.com
SSLEngine on
SSLCertificateKeyFile "/etc/httpd/conf/ssl/2nd-site.com/www.2nd-site.com_20240425AD16C.key.pem"
SSLCertificateFile "/etc/httpd/conf/ssl/2nd-site.com/www.2nd-site.com_20240425AD16C.crt.pem"
SSLCertificateChainFile "/etc/httpd/conf/ssl/2nd-site.com/chain-bundle.pem"
SSLCACertificateFile "/etc/httpd/conf/ssl/2nd-site.com/AAACertificateServicesRoot.crt.pem"


httpd-vhosts.conf 설정

ServerName 1st-site.co.kr
ServerAlias www.1st-site.co.kr
RedirectMatch ^/(.*)$ https://www.1st-site.co.kr/$1
ErrorLog logs/1st-site-error.log
CustomLog logs/1st-site-access.log common



ServerName 2nd-site.com
ServerAlias www.2nd-site.com
RedirectMatch ^/(.*)$ https://www.2nd-site.com/$1
ErrorLog logs/2nd-site-error.log
CustomLog logs/2nd-site-access.log common

댓글목록

등록된 댓글이 없습니다.

회원로그인


  • 케이엔아이시스템
  • 대표 : 김현철
  • 경기도 안양시 동안구 부림로80 한양빌딩 601-1201
  • TEL : 010-2890-1451
  • E-mail : khc@knisystem.co.kr
  • 사업자등록번호 : 130-31-39246
Copyright © KNISYSTEM All rights reserved.