User Tools

Site Tools


nginx:pagespeed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
nginx:pagespeed [2015-03-08 14:55] – title gabrielnginx: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=/usr/src/nginx-${_nginx_ver}-nps-${_nps_ver}-build
 +
 +sudo mkdir $_buildroot
 +cd $_buildroot
 +sudo apt-get source nginx
 +cd ${_buildroot}/nginx-${_nginx_ver}/debian/modules
 +sudo wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${_nps_ver}-beta.zip
 +sudo unzip release-${_nps_ver}-beta.zip
 +sudo mv ngx_pagespeed-release-${_nps_ver}-beta/ ngx_pagespeed
 +cd ngx_pagespeed
 +sudo wget https://dl.google.com/dl/page-speed/psol/${_nps_ver}.tar.gz
 +sudo tar xzvf ${_nps_ver}.tar.gz
 +
 +# add build rules
 +
 +sudo vi ${_buildroot}/nginx-${_nginx_ver}/debian/rules
 +
 +# add: --add-module=$(MODULESDIR)/ngx_pagespeed to the common_configure_flags section
 +
 +# update changelog info
 +sudo vi ${_buildroot}/nginx-${_nginx_ver}/debian/changelog
 +
 +# 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'Brien <gabriel@quay.net>  Thu, 30 Mar 2015 15:33:42 -0400
 +
 +cd ${_buildroot}/nginx-${_nginx_ver}
 +
 +# 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 ====== ====== Building and using Google PageSpeed with Nginx on Debian Wheezy Backports ======
  
nginx/pagespeed.txt · Last modified: 2019-08-10 18:37 by gabriel