Build httpd with HTTP/2 support
mod_http2
uses the library of nghttp2 as its implementation base. In order to build mod_http2
you need at least version 1.2.1 of libnghttp2
installed on your system.
When you ./configure
you Apache httpd source tree, you need to give it '--enable-http2
' as additional argument to trigger the build of the module. Should your libnghttp2
reside in an unusual place (whatever that is on your operating system), you may announce its location with '--with-nghttp2=<path>
' to configure
.
While that should do the trick for most, they are people who might prefer a statically linked nghttp2
in this module. For those, the option --enable-nghttp2-staticlib-deps
exists. It works quite similar to how one statically links openssl to mod_ssl
.
Nghttp2
A much better document to start with is http2 explained by Daniel Stenberg, the author of curl. It is available in an ever growing list of languages, too! It is available in an ever growing list of languages, too! HTTP/2 (originally named HTTP/2.0) is a major revision of the HTTP network protocol used by the World Wide Web.It was derived from the earlier experimental SPDY protocol, originally developed by Google. Curl is a command line tool and library which implements protocols like HTTP, HTTPS, FTP etc. Curl also supports HTTPS protocol which is secure version of the HTTP. Using curl may create some problems. We will examine how to solve these curl HTTPS related problems. The new protocl version, HTTP version 2 or in short HTTP/2, has some much needed improvements in terms of speed, reliability and security. I would strongly recommend you to upgrade your webserver to also support the HTTP/2 protocol. Advantages of HTTP/2 over HTTP/1.1 HTTP/2 improves a whole lot over version 1.1. How do I install curl with http2 support. Ask Question Asked 4 years, 2 months ago. Active 2 years, 3 months ago. Viewed 22k times 18. It seems like curl packed with ubuntu 16.04 does not have http2 support. How do I enable http2 in curl. 16.04 curl https.
Curl Http2 Test
Speaking of SSL, you need to be aware that most browsers will speak HTTP/2 only on https:
URLs, so you need a server with SSL support. But not only that, you will need a SSL library that supports the ALPN
extension. If OpenSSL is the library you use, you need at least version 1.0.2.