Skip to content

Instantly share code, notes, and snippets.

@peter-mcconnell
Created January 8, 2015 17:21
Show Gist options
  • Save peter-mcconnell/ce15fc73be7a9644ba5c to your computer and use it in GitHub Desktop.
Save peter-mcconnell/ce15fc73be7a9644ba5c to your computer and use it in GitHub Desktop.
nginx pagespeed ssl
NGINX_VERSION=1.6.2
NPS_VERSION=1.9.32.2
cd $HOME
wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
wget http://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.tar.gz
tar xzfv nginx-${NGINX_VERSION}.tar.gz
tar zxfv release-${NPS_VERSION}-beta.tar.gz
cd ngx_pagespeed-release-${NPS_VERSION}-beta/
# psol -> PageSpeed Optimization Libraries
wget https://dl.google.com/dl/page-speed/psol/${NPS_VERSION}.tar.gz
tar xzvf ${NPS_VERSION}.tar.gz
cd $HOME/nginx-${NGINX_VERSION}
# Configure nginx, specify SSL support, and add the ngx_pagespeed module
./configure --add-module=$HOME/ngx_pagespeed-release-${NPS_VERSION}-beta --with-http_ssl_module
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment