nginx:pagespeed
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nginx:pagespeed [2015-03-06 20:50] – fixing bugs, removing homedir from src path gabriel | nginx:pagespeed [2019-08-10 18:37] (current) – adding h1 and out-of-date warning gabriel | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Building and using Google | + | ====== |
- | https://developers.google.com/ | + | //**Note:** These instructions are out-of-date and may no longer be applicable.// |
- | https:// | + | ===== Building and using Google PageSpeed with Nginx on Debian Jessie ===== |
- | http://ngxpagespeed.com/ngx_pagespeed_example/ | + | <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://github.com/pagespeed/ | ||
+ | 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 | ||
+ | </code> | ||
+ | |||
+ | ===== Building and using Google PageSpeed with Nginx on Debian Wheezy Backports ===== | ||
<code bash> | <code bash> | ||
Line 44: | Line 86: | ||
</ | </ | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | http:// |
nginx/pagespeed.txt · Last modified: 2019-08-10 18:37 by gabriel