-
-
Save dcalixto/9d4afa64fa1ff381598c to your computer and use it in GitHub Desktop.
passenger nginx pagespeed pcre moreheader
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
| #download source nginx | |
| wget http://nginx.org/download/nginx-1.8.1.tar.gz | |
| tar -xvzf nginx-1.8.1.tar.gz | |
| #mkdir nginxmodule | |
| #cd nginxmodule | |
| #pagespeed | |
| NPS_VERSION=1.11.33.0 | |
| wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip -O release-${NPS_VERSION}-beta.zip | |
| unzip release-${NPS_VERSION}-beta.zip | |
| cd ngx_pagespeed-release-${NPS_VERSION}-beta/ | |
| wget https://dl.google.com/dl/page-speed/psol/${NPS_VERSION}.tar.gz | |
| tar -xzvf ${NPS_VERSION}.tar.gz # extracts to psol/ | |
| #moreheader | |
| wget https://github.com/openresty/headers-more-nginx-module/archive/v0.26.tar.gz | |
| tar -xzvf v0.26.tar.gz | |
| #pcre | |
| wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz | |
| tar -xzvf pcre-8.37.tar.gz | |
| #open ssl | |
| wget ftp://ftp.openssl.org/source/openssl-1.0.1s.tar.gz | |
| tar -xzvf openssl-1.0.1s.tar.gz | |
| #nginx-push-stream | |
| git clone git://github.com/wandenberg/nginx-push-stream-module.git | |
| #nginx-rtmp | |
| git clone git://github.com/arut/nginx-rtmp-module.git | |
| #naxi | |
| wget https://github.com/nbs-system/naxsi/archive/0.54.tar.gz | |
| wget https://github.com/nbs-system/naxsi/releases/download/0.54/0.54.tar.gz.asc | |
| tar -xvzf 0.54.tar.gz | |
| #redis | |
| wget http://people.FreeBSD.org/~osa/ngx_http_redis-0.3.8.tar.gz | |
| tar -xvzf ngx_http_redis-0.3.8.tar.gz | |
| #install passenger | |
| gem install passenger | |
| #command | |
| passenger-install-nginx-module --auto --languages ruby,python,nodejs,meteor --nginx-source-dir=/home/ubuntu/nginx-1.8.1 --prefix=/usr --extra-configure-flags="--conf-path=/etc/nginx/nginx.conf --add-module='/home/ubuntu/nginxmodule/naxsi-0.54/naxsi_src/' --pid-path=/var/run/nginx.pid --sbin-path=/usr/sbin --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-pcre='/home/ubuntu/nginxmodule/pcre-8.37' --with-http_gzip_static_module --with-http_stub_status_module --without-mail_pop3_module --without-mail_smtp_module --without-mail_imap_module --with-http_gzip_static_module --without-http_autoindex_module --without-http_browser_module --without-http_fastcgi_module --without-http_geo_module --without-http_empty_gif_module --without-http_map_module --without-http_ssi_module --without-http_userid_module --user=www-data --group=www-data --with-http_ssl_module --add-module='/home/ubuntu/nginxmodule/openssl-1.0.1s' --add-module='/home/ubuntu/nginxmodule/nginx-rtmp-module' --add-module='/home/ubuntu/nginxmodule/headers-more-nginx-module-0.26' --add-module='/home/ubuntu/nginxmodule/ngx_pagespeed-release-1.11.33.0-beta' --add-module='/home/ubuntu/nginxmodule/nginx-push-stream-module' --add-module='/home/ubuntu/nginxmodule/ngx_http_redis-0.3.8'" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment