Page 1 of 1

[HOWTO] Proxy Template for Nginx Caching + Force HTTPS + Google PageSpeed and HTTP2 in one

Posted: Tue Feb 18, 2020 2:13 pm
by vefeind
Hi you all.

I have combine Nginx Caching + Force HTTPS + Google PageSpeed and HTTP2 in one.
It's not perfect but I would like some feedback so we can work together and make this template AWESOME :)

First you need to install Google Page speed, I use this guide https://github.com/Prihod/vestacp_nginx_pagespeed_http2

This will rebuild Nginx with Google PageSpeed and http/2 for VestaCP.
Overwrite templates default.stpl and default.tpl.
Rebuild config Nginx for all sites.

You will need to do.

Code: Select all

cd /usr/local/src/
git clone https://github.com/Prihod/vestacp_nginx_pagespeed_http2.git
cd vestacp_nginx_pagespeed_http2/
chmod +x rebuild.sh
sudo ./rebuild.sh
Download the file
https://mega.nz/#!FNJxnSDR!aA_VONuSxBOB ... bjL7UiwvIk

Upload the zip file via ftp client to you public_html folder and move it to

Code: Select all

cd /usr/local/vesta/data/templates/web/nginx/
unzip the file and you will have 2 files lite2speed.tlp and lite2speed.stpl

Next: go to VestaCP / web find the domain you want to test and change the Proxy Template to Lite2speed

Re: [HOWTO] Proxy Template for Nginx Caching + Force HTTPS + Google PageSpeed and HTTP2 in one

Posted: Fri Apr 17, 2020 10:01 am
by tlozano
Fine, thank you.

Re: [HOWTO] Proxy Template for Nginx Caching + Force HTTPS + Google PageSpeed and HTTP2 in one

Posted: Mon Jun 01, 2020 3:45 pm
by desarrollo33
Give me this when do ./rebuild.sh

Code: Select all

Rebuild config Nginx for all sites? [yes] (Y/n) y
./rebuild.sh: line 175: v-list-sys-users: command not found