Last active
September 4, 2018 07:00
-
-
Save mrnonz/72ba0fdc8d1c083e503ad61a4b323f81 to your computer and use it in GitHub Desktop.
Script for download ngxpagespeed modules, please specific your version `nginx -v`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/