-
-
Save utok/c95f7892bfb48b1677d1 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.0.tar.gz | |
| tar -xvzf nginx-1.8.0.tar.gz | |
| #download module | |
| #pagespeed | |
| wget https://github.com/pagespeed/ngx_pagespeed/archive/release-1.9.32.4-beta.zip | |
| unzip release-1.9.32.4-beta.zip | |
| cd ngx_pagespeed-release-1.9.32.4-beta/ | |
| wget https://dl.google.com/dl/page-speed/psol/1.9.32.4.tar.gz | |
| tar -xzvf 1.9.32.4.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 | |
| #install passenger | |
| gem install passenger | |
| #test dlo | |
| rbenv sudo passenger-install-nginx-module --auto --languages ruby,python,nodejs,meteor --nginx-source-dir=/home/vagrant/src/nginx-1.8.0 --prefix=/usr --extra-configure-flags="--conf-path=/etc/nginx/nginx.conf --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/vagrant/src/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 --add-module='/home/vagrant/src/nginxmodule/headers-more-nginx-module-0.26' --add-module='/home/vagrant/src/ngx_pagespeed-release-1.9.32.4-beta'" | |
| #test dua | |
| rbenv sudo passenger-install-nginx-module --auto --languages ruby,python,nodejs,meteor --nginx-source-dir=/root/nginx-1.8.0 --prefix=/usr --extra-configure-flags="--conf-path=/etc/nginx/nginx.conf --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 --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=www-data --group=www-data --with-pcre=/root/pcre-8.37 --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_image_filter_module --with-file-aio --with-ipv6 --with-debug --without-mail_pop3_module --without-mail_smtp_module --without-mail_imap_module --without-http_geo_module --without-http_empty_gif_module --without-http_map_module --without-http_ssi_module --add-module='/root/headers-more-nginx-module-0.26' --add-module='/root/ngx_pagespeed-release-1.9.32.4-beta'" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment