Page 1 of 1
Upgrade http/1.1 to http2 on VestaCP web server ?
Posted: Wed Jul 26, 2017 10:43 am
by cong
hi all,
i see http2 on web server run faster http/1.1 , I am using VestaCP web server running ubuntu, nginx ver 1.13 & running https
so. i can upgrade http/1.1 to http2 on my webserver ? thanks for help
this is my website :
https://tnbland.com.vn

Re: Upgrade http/1.1 to http2 on VestaCP web server ?
Posted: Wed Jul 26, 2017 11:36 am
by Trentor
Google is your friend.
How To Set Up Nginx with HTTP/2 Support on Ubuntu
tl;dr:
1. Edit the file
snginx.conf in
/home/admin/conf/web/
2. Look up for these lines: "listen your_ip:443" and add at the end of that lines "ssl http2"
Example:
Code: Select all
server {
listen 123.45.678.90:443 ssl http2;
3. Restart nginx
4.
Check if you have got http2 working properly.
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
Posted: Wed Jul 26, 2017 11:57 am
by gecube_ru
1. Edit the file snginx.conf in /home/admin/conf/web/
The better idea is to edit template. Because when somebody changes the configuration via Web interface or CLI, Vesta regenerates configuration files from template.
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
Posted: Wed Jul 26, 2017 6:25 pm
by Trentor
gecube_ru wrote:The better idea is to edit template.
I agree with you, but I prefer to leave the templates untouched as a security backup if I make a mess changing the conf files.
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
Posted: Thu Jul 27, 2017 10:24 am
by Lesiu
Copy default.tpl and default.stpl to http2.tpl and http2.stpl and then edit http2.stpl so it begins with:
Code: Select all
server {
listen %ip%:%proxy_ssl_port% ssl http2;
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
Posted: Sat Jul 29, 2017 8:15 am
by cong
It's Working ! thanks Trentor
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
Posted: Sat Jul 29, 2017 4:17 pm
by Trentor
cong wrote: It's Working ! thanks Trentor
You are welcome.
Remember, if you change some config in your website from VestaCP, the modified files might be "refreshed" and you will have to redo the modifications.
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
Posted: Mon Jul 31, 2017 7:37 am
by locus
If on Ubuntu this will only work on 16.04 otherwise you need to compile OpenSSH with ALPN support.
More info:
https://ethitter.com/2016/06/nginx-open ... tp-2-alpn/
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
Posted: Wed Jan 17, 2018 4:01 pm
by Vladimir Chanaev
As I see, HTTP/2 NGINX template was implemented in newest VestaCP version. Any experience of using it? It works?