본문 바로가기

리눅스

아파치(Apache)에서 HTTP/2 모듈 활성화하는 방법

728x90

아파치(Apache)에서 HTTP/2 모듈 활성화하는 방법

Ubuntu 도커 컨테이너 실행

docker run -it --rm --platform linux/amd64 anti1346/ubuntu2204:latest bash

아파치 설치 스크립트

curl -fsSL https://raw.githubusercontent.com/anti1346/zz/main/application_middleware/install-apache-compilev2.sh | bash
/usr/local/apache2/bin/apachectl -V
$ /usr/local/apache2/bin/apachectl -V
Server version: Apache/2.4.57 (Unix)
Server built:   Jun 28 2023 11:35:09
Server's Module Magic Number: 20120211:127
Server loaded:  APR 1.7.4, APR-UTIL 1.6.3, PCRE 8.39 2016-06-14
Compiled using: APR 1.7.4, APR-UTIL 1.6.3, PCRE 8.39 2016-06-14
Architecture:   64-bit
Server MPM:     worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/usr/local/apache2"
 -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

CentOS 도커 컨테이너 실행

docker run -it --rm --platform linux/amd64 anti1346/centos:7 bash
728x90