Last updated on

The PageSpeed modules are open-source server modules that optimize your site automatically. It will automatically increase the performance of the website by changing the web resources, latency, and much more. In this article, we are going to explain how to install and configure Google PageSpeed Module with Nginx on Ubuntu 18.04.


  • You should have access to an Ubuntu 18.04 server and created a non-root user account with sudo privileges.
  • Install Nginx and create a server block then link it to the website also.

Install PageSpeed Module

To automatically install dependencies and build the latest version of Nginx with the latest stable version of ngx_pagespeed. Install using the below command