For those of you who didn’t know,
PageSpeed (ngx_pagespeed) is a Nginx module created by Google to help
Make the Web Faster by rewriting web pages to reduce latency and
bandwidth. For the installation, we will need to compile nginx from
souce with the PageSpeed module, as Nginx doesn’t support Dynamic module
loading (DSO), unless you want to build your own rpm or deb files. This
article assumes you have at least basic knowledge of linux, know how to
use the shell, and most importantly, you host your site on your own
VPS.