Print
카테고리: [ Apache HTTP Server ]
조회수: 4834

1. 개요

yum으로 mod_ssl.so 모듈 설치

2. 방법

# yum install mod_ssl
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                                                                                      | 2.4 kB  00:00:00
Resolving Dependencies
--> Running transaction check
---> Package mod_ssl.x86_64 1:2.4.39-1.amzn2.0.1 will be installed
--> Processing Dependency: httpd = 2.4.39-1.amzn2.0.1 for package: 1:mod_ssl-2.4.39-1.amzn2.0.1.x86_64
--> Processing Dependency: sscg >= 2.2.0 for package: 1:mod_ssl-2.4.39-1.amzn2.0.1.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.4.37-1.amzn2.0.1 will be updated
--> Processing Dependency: httpd = 2.4.37-1.amzn2.0.1 for package: httpd-devel-2.4.37-1.amzn2.0.1.x86_64
---> Package httpd.x86_64 0:2.4.39-1.amzn2.0.1 will be an update
--> Processing Dependency: httpd-tools = 2.4.39-1.amzn2.0.1 for package: httpd-2.4.39-1.amzn2.0.1.x86_64
--> Processing Dependency: httpd-filesystem = 2.4.39-1.amzn2.0.1 for package: httpd-2.4.39-1.amzn2.0.1.x86_64
---> Package sscg.x86_64 0:2.3.3-2.amzn2.0.1 will be installed
--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: sscg-2.3.3-2.amzn2.0.1.x86_64
--> Processing Dependency: libtalloc.so.2()(64bit) for package: sscg-2.3.3-2.amzn2.0.1.x86_64
--> Running transaction check
---> Package httpd-devel.x86_64 0:2.4.37-1.amzn2.0.1 will be updated
---> Package httpd-devel.x86_64 0:2.4.39-1.amzn2.0.1 will be an update
---> Package httpd-filesystem.noarch 0:2.4.37-1.amzn2.0.1 will be updated
---> Package httpd-filesystem.noarch 0:2.4.39-1.amzn2.0.1 will be an update
---> Package httpd-tools.x86_64 0:2.4.37-1.amzn2.0.1 will be updated
---> Package httpd-tools.x86_64 0:2.4.39-1.amzn2.0.1 will be an update
---> Package libtalloc.x86_64 0:2.1.13-1.amzn2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================
 Package                                    Arch                             Version                                        Repository                            Size
=======================================================================================================================================================================
Installing:
 mod_ssl                                    x86_64                           1:2.4.39-1.amzn2.0.1                           amzn2-core                           115 k
Installing for dependencies:
 libtalloc                                  x86_64                           2.1.13-1.amzn2                                 amzn2-core                            42 k
 sscg                                       x86_64                           2.3.3-2.amzn2.0.1                              amzn2-core                            51 k
Updating for dependencies:
 httpd                                      x86_64                           2.4.39-1.amzn2.0.1                             amzn2-core                           1.3 M
 httpd-devel                                x86_64                           2.4.39-1.amzn2.0.1                             amzn2-core                           204 k
 httpd-filesystem                           noarch                           2.4.39-1.amzn2.0.1                             amzn2-core                            23 k
 httpd-tools                                x86_64                           2.4.39-1.amzn2.0.1                             amzn2-core                            87 k

Transaction Summary
=======================================================================================================================================================================
Install  1 Package  (+2 Dependent packages)
Upgrade             ( 4 Dependent packages)

Total download size: 1.8 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/7): httpd-2.4.39-1.amzn2.0.1.x86_64.rpm                                                                                                      | 1.3 MB  00:00:00
(2/7): httpd-filesystem-2.4.39-1.amzn2.0.1.noarch.rpm                                                                                           |  23 kB  00:00:00
(3/7): httpd-tools-2.4.39-1.amzn2.0.1.x86_64.rpm                                                                                                |  87 kB  00:00:00
(4/7): libtalloc-2.1.13-1.amzn2.x86_64.rpm                                                                                                      |  42 kB  00:00:00
(5/7): mod_ssl-2.4.39-1.amzn2.0.1.x86_64.rpm                                                                                                    | 115 kB  00:00:00
(6/7): httpd-devel-2.4.39-1.amzn2.0.1.x86_64.rpm                                                                                                | 204 kB  00:00:00
(7/7): sscg-2.3.3-2.amzn2.0.1.x86_64.rpm                                                                                                        |  51 kB  00:00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                  9.8 MB/s | 1.8 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : httpd-filesystem-2.4.39-1.amzn2.0.1.noarch                                                                                                         1/11
  Installing : libtalloc-2.1.13-1.amzn2.x86_64                                                                                                                    2/11
  Installing : sscg-2.3.3-2.amzn2.0.1.x86_64                                                                                                                      3/11
  Updating   : httpd-tools-2.4.39-1.amzn2.0.1.x86_64                                                                                                              4/11
  Updating   : httpd-2.4.39-1.amzn2.0.1.x86_64                                                                                                                    5/11
  Updating   : httpd-devel-2.4.39-1.amzn2.0.1.x86_64                                                                                                              6/11
  Installing : 1:mod_ssl-2.4.39-1.amzn2.0.1.x86_64                                                                                                                7/11
  Cleanup    : httpd-devel-2.4.37-1.amzn2.0.1.x86_64                                                                                                              8/11
  Cleanup    : httpd-2.4.37-1.amzn2.0.1.x86_64                                                                                                                    9/11
  Cleanup    : httpd-filesystem-2.4.37-1.amzn2.0.1.noarch                                                                                                        10/11
  Cleanup    : httpd-tools-2.4.37-1.amzn2.0.1.x86_64                                                                                                             11/11
  Verifying  : httpd-tools-2.4.39-1.amzn2.0.1.x86_64                                                                                                              1/11
  Verifying  : httpd-devel-2.4.39-1.amzn2.0.1.x86_64                                                                                                              2/11
  Verifying  : sscg-2.3.3-2.amzn2.0.1.x86_64                                                                                                                      3/11
  Verifying  : 1:mod_ssl-2.4.39-1.amzn2.0.1.x86_64                                                                                                                4/11
  Verifying  : httpd-filesystem-2.4.39-1.amzn2.0.1.noarch                                                                                                         5/11
  Verifying  : httpd-2.4.39-1.amzn2.0.1.x86_64                                                                                                                    6/11
  Verifying  : libtalloc-2.1.13-1.amzn2.x86_64                                                                                                                    7/11
  Verifying  : httpd-filesystem-2.4.37-1.amzn2.0.1.noarch                                                                                                         8/11
  Verifying  : httpd-2.4.37-1.amzn2.0.1.x86_64                                                                                                                    9/11
  Verifying  : httpd-devel-2.4.37-1.amzn2.0.1.x86_64                                                                                                             10/11
  Verifying  : httpd-tools-2.4.37-1.amzn2.0.1.x86_64                                                                                                             11/11

Installed:
  mod_ssl.x86_64 1:2.4.39-1.amzn2.0.1

Dependency Installed:
  libtalloc.x86_64 0:2.1.13-1.amzn2                                                   sscg.x86_64 0:2.3.3-2.amzn2.0.1

Dependency Updated:
  httpd.x86_64 0:2.4.39-1.amzn2.0.1  httpd-devel.x86_64 0:2.4.39-1.amzn2.0.1  httpd-filesystem.noarch 0:2.4.39-1.amzn2.0.1  httpd-tools.x86_64 0:2.4.39-1.amzn2.0.1

Complete!

3. mod_ssl.so 파일 확인

디렉토리 : /etc/httpd/modules

3-1. 설치 전

# ls -tlr *ssl*
ls: cannot access *ssl*: No such file or directory

3-2. 설치 후

# ls -tlr *ssl*
-rwxr-xr-x 1 root root 236040 Apr  4 18:10 mod_ssl.so

4. 00-ssl.conf 파일 확인

디렉토리 : /etc/httpd/conf.modules.d

3-1. 설치전

파일 없음

3-2. 설치 후

-rw-r--r-- 1 root root   41 Apr  4 18:08 00-ssl.conf
# cat 00-ssl.conf
LoadModule ssl_module modules/mod_ssl.so

5. ssl.conf 파일 확인

디렉토리 : /etc/httpd/conf.d

자세한 설명은 생략한다. 아무튼 mod_ssl 관련 여러 파일이 생성되어 httpd 서비스를 다시 시작하는 것만으로 ssl을 사용할 수 있게 됨.