Skip to content

Instantly share code, notes, and snippets.

@mrnonz
Last active September 4, 2018 07:00
Show Gist options
  • Save mrnonz/72ba0fdc8d1c083e503ad61a4b323f81 to your computer and use it in GitHub Desktop.
Save mrnonz/72ba0fdc8d1c083e503ad61a4b323f81 to your computer and use it in GitHub Desktop.
Script for download ngxpagespeed modules, please specific your version `nginx -v`
bash <(curl -f -L -sS -k https://ngxpagespeed.com/install) \
--nginx-version "{version}" \
--dynamic \
-a '--with-http_ssl_module
--with-http_realip_module
--with-http_dav_module
--with-http_gzip_static_module
--with-http_gunzip_module
--with-threads
--with-cc-opt="-DNGX_HTTP_HEADERS"'
@mrnonz
Copy link
Author

mrnonz commented Sep 4, 2018

After that you need to make module in your nginx-path ~/nginx-{version}

then copy ~/nginx-{version}/objs/ngx_pagespeed.so to /usr/share/nginx/modules/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment