Skip to content

Commit 31905f4

Browse files
author
sam bacha
authored
fix(pagespeed): update fqdn + instructions
this fixes the deadlinks for pagespeed, see [https://github.com/apache/incubator-pagespeed-ngx/issues/1656](https://github.com/apache/incubator-pagespeed-ngx/issues/1656). Also added clearer instructions if pagespeed is used as a module so that users know to adjust their `nginx.conf`
1 parent 65f1a1e commit 31905f4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

nginx-autoinstall.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,10 @@ case $OPTION in
198198
# PageSpeed
199199
if [[ $PAGESPEED == 'y' ]]; then
200200
cd /usr/local/src/nginx/modules || exit 1
201-
wget https://github.com/pagespeed/ngx_pagespeed/archive/v${NPS_VER}-stable.zip
202-
unzip v${NPS_VER}-stable.zip
203-
cd incubator-pagespeed-ngx-${NPS_VER}-stable || exit 1
204-
psol_url=https://dl.google.com/dl/page-speed/psol/${NPS_VER}.tar.gz
205-
[ -e scripts/format_binary_url.sh ] && psol_url=$(scripts/format_binary_url.sh PSOL_BINARY_URL)
201+
wget https://github.com/apache/incubator-pagespeed-ngx/archive/v1.14.33.1-RC1.zip
202+
unzip v1.14.33.1-RC1.zip
203+
cd incubator-pagespeed-ngx-1.14.33.1-RC1 || exit 1
204+
psol_url=https://dist.apache.org/repos/dist/release/incubator/pagespeed/1.14.36.1/x64/psol-1.14.36.1-apache-incubating-x64.tar.gz
206205
wget "${psol_url}"
207206
tar -xzvf "$(basename "${psol_url}")"
208207
fi
@@ -395,7 +394,11 @@ case $OPTION in
395394
NGINX_MODULES=$(
396395
echo "$NGINX_MODULES"
397396
echo "--add-module=/usr/local/src/nginx/modules/incubator-pagespeed-ngx-${NPS_VER}-stable"
397+
echo "To load the ngx_pagespeed module, you'll need to add:"
398+
echo " load_module \"modules/ngx_pagespeed.so\";"
399+
echo "at the top of your main nginx configuration file."
398400
)
401+
399402
fi
400403

401404
if [[ $BROTLI == 'y' ]]; then

0 commit comments

Comments
 (0)