How to install HTTP/2 on DirectAdmin
Created on 2017-Jan-06
Updated on 2017-Jan-19
Install OpenSSL with ALPN support
cd /usr/local/src/ wget ftp://ftp.openssl.org/source/openssl-1.0.2j.tar.gz tar xzf openssl-1.0.2j.tar.gz cd openssl-1.0.2j ./config --prefix=/usr/local/lib_http2 no-ssl2 no-ssl3 zlib-dynamic -fPIC make depend make install
Install nghttp2 - HTTP/2 Library
cd /usr/local/directadmin/custombuild ./build update ./build nghttp2
Install HTTP/2 for Apache 2.x
cd /usr/local/directadmin/custombuild mkdir -p custom/ap2 cp -p configure/ap2/configure.apache custom/ap2/configure.apache vi custom/ap2/configure.apache ### REPLACE "--with-ssl=/usr" \ ### WITH: "--enable-http2" \ "--enable-ssl-staticlib-deps" \ "--with-ssl=/usr/local/lib_http2" \ ### Rebuild apache ./build apache ### Add HTTP/2 settings to httpd-includes.conf