하나의 서버 2 이상의 사이트에 SSL 적용하기
페이지 정보

본문
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
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
- 이전글adminer.php, fs.php, up.php, alfa-rex.php 등의 파일을 이용한 해킹 기법 조심 24.09.21
- 다음글게시판 제목에 "1 페이지" 나오지 않게 하기 24.09.19
댓글목록
등록된 댓글이 없습니다.
