You cannot see this page without javascript.

CentOS7 에서 apache에 mod_http2 적용하기

APM 조회 수 1913 추천 수 0 2017.02.07 10:43:36

* cmake upgrade
wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
tar zxvf cmake-3.7.2.tar.gz
cd cmake-3.7.2/
./configure --prefix=/apm/server/cmake
make -j 4
make install

 

* nghttp2 install
autoreconf -i
automake
autoconf
./configure --prefix=/apm/server/nghttp2
make
make install
ldconfig

 

* apache httpd compie
./configure --prefix=/apm/server/apache/httpd --sysconfdir=/apm/server/conf --with-apr=/apm/server/apache/apr/bin/apr-1-config --with-apr-iconv=/apm/server/apache/apr-iconv-1.2.1/apriconv --with-apr-util=/apm/server/apache/apr-util-1.5.4/bin/apu-1-config --with-libxml2 --with-mpm=worker --with-pcre --with-ssl --with-z --enable-authn-socache=no --enable-authnz-ldap=no --enable-cache --enable-cgid=no --enable-deflate --enable-dav --enable-dav-fs=no --enable-dav-lock=no --enable-ext-filter=no --enable-expires --enable-file-cache --enable-headers --enable-isapi=no --enable-lbmethod-bybusyness=no --enable-lbmethod-byrequests=no --enable-lbmethod-bytraffic=no --enable-lbmethod-heartbeat=no --enable-ldap=no --enable-mime-magic --enable-mods-shared=most --enable-modules=most --enable-mpms-shared=all --enable-proxy --enable-proxy-ajp=no --enable-proxy-balancer=no --enable-proxy-connect=no --enable-proxy-express=no --enable-proxy-fcgi=no --enable-proxy-fdpass=no --enable-proxy-ftp=no --enable-proxy-http=no --enable-proxy-scgi=no --enable-rewrite --enable-so --enable-socache-dbm=no --enable-socache-shmcb --enable-ssl --enable-vhosts-alias --enable-http2 --with-nghttp2=/apm/server/nghttp2 --enable-nghttp2-staticlib-deps
make
make install

 

* httpd.conf

LoadModule http2_module modules/mod_http2.so

<IfModule http2_module>
     ProtocolsHonorOrder On
     Protocols h2 http/1.1
</IfModule>

 

mod-h2.png

 

첨부
엮인글 :
List of Articles
번호 제목 글쓴이 날짜 조회 수

XE Login