[Linux] mod_ssl.so Apache 모듈 설치하기
아파치를 사용하는 리눅스 서버에 SSL을 적용하려고 할 때 아피치 모듈 중 mod_ssl.so가 설치되어 있어야 합니다.
✅ mod_ssl.so 설치
~]# dnf -y install mod_ssl
Last metadata expiration check: 2:26:16 ago on Tue 23 Jul 2024 06:03:25 AM UTC.
Dependencies resolved.
======================================================================================================
Package Architecture Version Repository Size
======================================================================================================
Installing:
mod_ssl x86_64 1:2.4.57-8.el9 appstream 109 k
Installing dependencies:
sscg x86_64 3.0.0-7.el9 appstream 45 k
Transaction Summary
======================================================================================================
Install 2 Packages
Total download size: 154 k
Installed size: 374 k
Downloading Packages:
(1/2): sscg-3.0.0-7.el9.x86_64.rpm 234 kB/s | 45 kB 00:00
(2/2): mod_ssl-2.4.57-8.el9.x86_64.rpm 532 kB/s | 109 kB 00:00
------------------------------------------------------------------------------------------------------
Total 170 kB/s | 154 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : sscg-3.0.0-7.el9.x86_64 1/2
Installing : mod_ssl-1:2.4.57-8.el9.x86_64 2/2
Running scriptlet: mod_ssl-1:2.4.57-8.el9.x86_64 2/2
Verifying : mod_ssl-1:2.4.57-8.el9.x86_64 1/2
Verifying : sscg-3.0.0-7.el9.x86_64 2/2
Installed:
mod_ssl-1:2.4.57-8.el9.x86_64 sscg-3.0.0-7.el9.x86_64
Complete!
~]# pwd
/etc/httpd/modules
# 설치 여부 확인하기 #
~]# ll mod_ssl.so
-rwxr-xr-x 1 root root 264080 Apr 3 09:50 mod_ssl.so
# 설정 파일 확인 #
~]# cat /etc/httpd/conf.modules.d/00-ssl.conf
✅ 서버 방화벽 포트 443 열어두기
SSL 포트인 443 포트가 방화벽에서 열려있는 상태로 활성화 되어 있어야 합니다.