diff --git a/scripts/build_nginx.sh b/scripts/build_nginx.sh index 05702549..aaf3ac1b 100755 --- a/scripts/build_nginx.sh +++ b/scripts/build_nginx.sh @@ -9,12 +9,12 @@ # Once the dyno has is 'up' you can open your browser and navigate # this dyno's directory structure to download the nginx binary. -NGINX_VERSION=${NGINX_VERSION-1.5.7} -PCRE_VERSION=${PCRE_VERSION-8.21} -HEADERS_MORE_VERSION=${HEADERS_MORE_VERSION-0.23} +NGINX_VERSION=${NGINX_VERSION-1.9.9} +PCRE_VERSION=${PCRE_VERSION-8.37} +HEADERS_MORE_VERSION=${HEADERS_MORE_VERSION-0.26} nginx_tarball_url=http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz -pcre_tarball_url=http://garr.dl.sourceforge.net/project/pcre/pcre/${PCRE_VERSION}/pcre-${PCRE_VERSION}.tar.bz2 +pcre_tarball_url=http://downloads.sourceforge.net/project/pcre/pcre/${PCRE_VERSION}/pcre-${PCRE_VERSION}.tar.bz2 headers_more_nginx_module_url=https://github.com/agentzh/headers-more-nginx-module/archive/v${HEADERS_MORE_VERSION}.tar.gz temp_dir=$(mktemp -d /tmp/nginx.XXXXXXXXXX) @@ -40,7 +40,10 @@ echo "Downloading $headers_more_nginx_module_url" ./configure \ --with-pcre=pcre-${PCRE_VERSION} \ --prefix=/tmp/nginx \ - --add-module=/${temp_dir}/nginx-${NGINX_VERSION}/headers-more-nginx-module-${HEADERS_MORE_VERSION} + --add-module=/${temp_dir}/nginx-${NGINX_VERSION}/headers-more-nginx-module-${HEADERS_MORE_VERSION} \ + --with-http_v2_module \ + --with-http_ssl_module \ + --with-http_stub_status_module make install )