Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Upgrade http/1.1 to http2 on VestaCP web server ?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
cong
Posts: 3
Joined: Mon May 15, 2017 3:50 pm

Upgrade http/1.1 to http2 on VestaCP web server ?
  • Quote

Post by cong » Wed Jul 26, 2017 10:43 am

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
Image
Top

Trentor
Posts: 84
Joined: Fri Apr 25, 2014 6:42 pm

Re: Upgrade http/1.1 to http2 on VestaCP web server ?
  • Quote

Post by Trentor » Wed Jul 26, 2017 11:36 am

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.
Top

gecube_ru
Posts: 141
Joined: Thu Jun 22, 2017 1:21 pm

Re: Upgrade http/1.1 to http2 on VestaCP web server ?
  • Quote

Post by gecube_ru » Wed Jul 26, 2017 11:57 am

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.
Top

Trentor
Posts: 84
Joined: Fri Apr 25, 2014 6:42 pm

Re: Upgrade http/1.1 to http2 on VestaCP web server ?
  • Quote

Post by Trentor » Wed Jul 26, 2017 6:25 pm

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.
Top

Lesiu
Posts: 7
Joined: Thu Jul 27, 2017 10:20 am

Re: Upgrade http/1.1 to http2 on VestaCP web server ?
  • Quote

Post by Lesiu » Thu Jul 27, 2017 10:24 am

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;
Top

cong
Posts: 3
Joined: Mon May 15, 2017 3:50 pm

Re: Upgrade http/1.1 to http2 on VestaCP web server ?
  • Quote

Post by cong » Sat Jul 29, 2017 8:15 am

Trentor 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:

Code: Select all

server {
    listen      123.45.678.90:443 ssl http2;
3. Restart nginx

4. Check if you have got http2 working properly.
It's Working ! thanks Trentor
Top

Trentor
Posts: 84
Joined: Fri Apr 25, 2014 6:42 pm

Re: Upgrade http/1.1 to http2 on VestaCP web server ?
  • Quote

Post by Trentor » Sat Jul 29, 2017 4:17 pm

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.
Top

locus
Posts: 63
Joined: Thu May 05, 2016 6:43 am

Os: Ubuntu 15x
Web: apache + nginx
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
  • Quote

Post by locus » Mon Jul 31, 2017 7:37 am

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/
Top

Vladimir Chanaev
Posts: 45
Joined: Sun Mar 13, 2016 2:21 pm
Contact:
Contact Vladimir Chanaev
Website Facebook Skype

Os: Ubuntu 17x
Web: nginx + php-fpm
Re: Upgrade http/1.1 to http2 on VestaCP web server ?
  • Quote

Post by Vladimir Chanaev » Wed Jan 17, 2018 4:01 pm

As I see, HTTP/2 NGINX template was implemented in newest VestaCP version. Any experience of using it? It works?
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password