http2 with alpn support

ayeweb

Verified User
Joined
Nov 27, 2016
Messages
60
Hello,
I try to follow this topic http://www.forum.directadmin.com/showthread.php?t=52590

and i use Nginx_Apache
But results "ALPN is not supported." follow link
https://tools.keycdn.com/http2-test?url=https://www.nongkhaiaquarium.com

I did below...

To enable HTTP/2 in Nginx:
cd /usr/local/src/
wget ftp://ftp.openssl.org/source/openssl-1.1.0g.tar.gz
tar xzf openssl-1.1.0g.tar.gz

and then
For Nginx_Apache:
cd /usr/local/directadmin/custombuild
mkdir -p custom/nginx_reverse
cp -p configure/nginx_reverse/configure.nginx custom/nginx_reverse/configure.nginx

Build Nginx with statically linked OpenSSL library:
1) Edit configure.nginx which was copied to custom/ folder
2) Add "--with-openssl=/usr/local/src/openssl-1.1.0g" and "--with-http_v2_module" flags
3) Run ./build nginx
And error

/usr/local/directadmin/custombuild/custom/nginx_reverse/configure.nginx permssion denied
please check /usr/local/directadmin/custombuild/custom/nginx_reverse/configure.nginx file.

What wrong with this case?
or i need to Enable http2 in Apache first?
Thank you very much.
 
Hello,

What OS are running there? You should follow the guide only if you have openssl installed by OS older than 1.1.0.

You don't need to do anything to Apache in any case when you have NGINX in front of it.
 
hello,
I use centos 6, and how to enable ALPN for http2 with nginx?
Thank you.
 
I believe you need to upgrade openssl server-wide first.... search the forums for available instructions.
 
Back
Top