Enabling HTTP/2 in Nginx
· β 2 min read
This article mainly covers how to install Nginx from source on Linux and enable HTTP/2, and it also compares the speed of accessing this site over HTTP/1.1 versus HTTP/2.0.
1. Building and Installing Nginx First you need to download Nginx and a few of its dependencies. Zlib compresses data when a web request is transferred, saving bandwidth; PCRE matches URLs with regular expressions for routing and dispatch; OpenSSL or LibreSSL, the secure sockets algorithm library, provides HTTPS support.