I'm running nginx 1.14 on Ubuntu 16.04 and I just installed 1.15 following the instructions from this Google page.
nginx -v still outputs
question is...how do I enable the new version with pagespeed?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You may set the version of
pagespeed by adding the
-n flag, i.e.:
bash <(curl -f -L -sS https://ngxpagespeed.com/install) -n 1.16.0 -a '--with-compat'
When building PageSpeed, I automate by using a script that can be found here: https://www.majlovesreg.one/adding-pagespeed-to-a-running-nginx-instance
Note that this installs PageSpeed on a pre-installed NGINX running in your system. You may edit it based on your specific needs.