NGINX, PageSpeed, Brotli

This guide assumes you are switched to su - . Please note that during the ./configure steps you need to check for missing libraries, this guide assumes you are using the eSG provided installation image.

Goal

Compile nginx with most modules, including support for http2 and pagespeed.

Steps

EXPORTS used to set versions

You can change the values here to change compiled version.

Building Pre requisites

Library Prerequisites

Centos 7

Centos 8

Pagespeed Latest Beta

If you would like to build using the latest beta

Fetch nginx

Fetch libressl

Fetch openssl

Optionally you can use openssl instead of libressl.

Fetch Headers_more

Fetch PageSpeed

Fetch PSOL

In order to get the version of PSOL build continue with the steps after this one, while configuring nginx you will get an error message providing the version required. In this example the latest-stable is 1.13.35.2.

Latest Beta: 1.13.35.2-beta Check here for latest release: https://modpagespeed.com/doc/release_notes

Fetch Brotli

Fetch vts

Configure NGINX

Choose between the following:

libreSSL

openSSL

Build NGINX

Install NGINX

Setup Steps

Setup the systemd service

Create the systemd service

Setup the pid directory creation

Edit nginx.conf

Create temp folder on boot

Used for the pid file

vim /usr/lib/tmpfiles.d/nginx.conf

Setup Firewalld

Firewalld

This page has been accessed times Today, times Yesterday and times Since 2020/06/08.