Upgrade http/1.1 to http2 on VestaCP web server ?
Upgrade http/1.1 to http2 on VestaCP web server ?
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

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 ?
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:
3. Restart nginx
4. Check if you have got http2 working properly.
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;
4. Check if you have got http2 working properly.
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
The better idea is to edit template. Because when somebody changes the configuration via Web interface or CLI, Vesta regenerates configuration files from template.1. Edit the file snginx.conf in /home/admin/conf/web/
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
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.gecube_ru wrote:The better idea is to edit template.
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
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 ?
It's Working ! thanks TrentorTrentor wrote: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:
3. Restart nginxCode: Select all
server { listen 123.45.678.90:443 ssl http2;
4. Check if you have got http2 working properly.
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
You are welcome.cong wrote: It's Working ! thanks Trentor
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 ?
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/
More info:
https://ethitter.com/2016/06/nginx-open ... tp-2-alpn/
-
- Posts: 45
- Joined: Sun Mar 13, 2016 2:21 pm
- Contact:
- Os: Ubuntu 17x
- Web: nginx + php-fpm
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
As I see, HTTP/2 NGINX template was implemented in newest VestaCP version. Any experience of using it? It works?