V
V
Vadim Timoshenko2018-12-25 19:43:00
Nginx
Vadim Timoshenko, 2018-12-25 19:43:00

How to set NGX_PageSpeed?

I follow instructions that are not entirely clear to me https://www.modpagespeed.com/doc/build_ngx_pagespe...

#[check the release notes for the latest version]
NPS_VERSION=1.13.35.1-beta
cd
wget https://github.com/apache/incubator-pagespeed-ngx/archive/v${NPS_VERSION}.zip
unzip v${NPS_VERSION}.zip
nps_dir=$(find . -name "*pagespeed-ngx-${NPS_VERSION}" -type d)
cd "$nps_dir"
NPS_RELEASE_NUMBER=${NPS_VERSION/beta/}
NPS_RELEASE_NUMBER=${NPS_VERSION/stable/}
psol_url=https://dl.google.com/dl/page-speed/psol/${NPS_RELEASE_NUMBER}.tar.gz
[ -e scripts/format_binary_url.sh ] && psol_url=$(scripts/format_binary_url.sh PSOL_BINARY_URL)
wget ${psol_url}
tar -xzvf $(basename ${psol_url})  # extracts to psol/

I got to wget PSOL and I can't figure out which link to insert. My NPS_VERSION version is 1.13.35.2-stable.
And yet - before installing, will I need to delete the existing nginx? What is the best way to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mysterion, 2018-12-25
@PbI6A_KuT

NPS_VERSION=1.13.35.1-beta
Replace with:
Remove Nginx, but first run nginx -V and see how it is built and add this line to configure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question