nginx:pagespeed
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
nginx:pagespeed [2015-03-08 14:55] – title gabriel | nginx:pagespeed [2015-04-30 15:41] – adding updates for Jessie gabriel | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Building and using Google PageSpeed with Nginx on Debian Jessie ====== | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev unzip | ||
+ | sudo apt-get build-dep nginx | ||
+ | |||
+ | export _nginx_ver=1.6.2 | ||
+ | export _nps_ver=1.9.32.3 | ||
+ | export _buildroot=/ | ||
+ | |||
+ | sudo mkdir $_buildroot | ||
+ | cd $_buildroot | ||
+ | sudo apt-get source nginx | ||
+ | cd ${_buildroot}/ | ||
+ | sudo wget https:// | ||
+ | sudo unzip release-${_nps_ver}-beta.zip | ||
+ | sudo mv ngx_pagespeed-release-${_nps_ver}-beta/ | ||
+ | cd ngx_pagespeed | ||
+ | sudo wget https:// | ||
+ | sudo tar xzvf ${_nps_ver}.tar.gz | ||
+ | |||
+ | # add build rules | ||
+ | |||
+ | sudo vi ${_buildroot}/ | ||
+ | |||
+ | # add: --add-module=$(MODULESDIR)/ | ||
+ | |||
+ | # update changelog info | ||
+ | sudo vi ${_buildroot}/ | ||
+ | |||
+ | # add something along these lines (append nps to pkg version): | ||
+ | # | ||
+ | #nginx (1.6.2-5-nps) unstable; urgency=medium | ||
+ | # | ||
+ | # * Rebuild of backports with ngx_pagespeed 1.9.32.3. | ||
+ | # | ||
+ | # -- Gabriel O' | ||
+ | |||
+ | cd ${_buildroot}/ | ||
+ | |||
+ | # workaround to building source package, the original distribution packages aren't registered correctly | ||
+ | sudo dpkg-buildpackage -b | ||
+ | </ | ||
+ | |||
====== Building and using Google PageSpeed with Nginx on Debian Wheezy Backports ====== | ====== Building and using Google PageSpeed with Nginx on Debian Wheezy Backports ====== | ||
nginx/pagespeed.txt · Last modified: 2019-08-10 18:37 by gabriel