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

HTTP 2 Failing? Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
hwcltjn
Posts: 11
Joined: Mon Oct 09, 2017 4:07 pm

Os: Ubuntu 15x
Web: apache + nginx
HTTP 2 Failing?
  • Quote

Post by hwcltjn » Thu Jan 25, 2018 4:54 pm

I've just installed a fresh version of 0.9.8-19 on Ubuntu 16 with Apache and NGINX, configured a new web domain, successfully added a Let's Encrypt certificate but when I change the proxy template to "http2" I get an error that NGINX is unable to restart.

Anyone else having the same problem?

Logs indicate:

Code: Select all

2018/01/25 17:38:44 [emerg] 4912#4912: open() "/var/log/httpd/domains/domain.net.error.log" failed (2: No such file or directory)
Manually changing the default.stpl nginx template to include http2 works fine though.

EDIT:
It seems someone has a similar/same issue on github https://github.com/serghey-rodin/vesta/issues/1414
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: HTTP 2 Failing?
  • Quote

Post by youradds » Thu Jan 25, 2018 5:08 pm

I think the problem is that the folder should be:

/var/log/apache2

Maybe try making a symlink?
ln -s /var/log/apache2 /var/log/httpd
Andy
Top

hwcltjn
Posts: 11
Joined: Mon Oct 09, 2017 4:07 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: HTTP 2 Failing?
  • Quote

Post by hwcltjn » Fri Jan 26, 2018 4:17 pm

Andy, nicely spotted.
I've figured it out.

There's a bug in the http2.tpl and http2.stpl nginx templates located at:

Code: Select all

/usr/local/vesta/data/templates/web/nginx/
As you rightly mentioned the logpaths are hardcoded to /var/log/httpd/domains when they should be /var/log/%web_system%/domains/.

So in http2.tpl and http2.stpl lines 7, 13 and 14 need to modified from

Code: Select all

/var/log/httpd/domains/%domain%
to

Code: Select all

/var/log/%web_system%/domains/%domain%
Top

benito
Posts: 2
Joined: Fri Feb 09, 2018 11:59 am

Os: Ubuntu 15x
Web: apache + nginx
Re: HTTP 2 Failing?
  • Quote

Post by benito » Fri Feb 09, 2018 12:04 pm

Thank you for figuring this out!

Everything is working as expected now.
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: HTTP 2 Failing?
  • Quote

Post by Vladimir Chanaev » Sun Feb 25, 2018 11:22 am

benito wrote: ↑
Fri Feb 09, 2018 12:04 pm
Thank you for figuring this out!

Everything is working as expected now.
It's useless. HTTP/2 in latest VestaCP won't working normally anyway. You may get shiny green tick on the test sites, but I see no profit!

Apache2 needs additional HTTP/2 template too. Vesta don't have it, nor mod_http2 for Apache2 (check «sudo a2enmod http2»).
There is no proper version of Apache2 for HTTP/2 by default in VestaCP (check «sudo apache2 -v»). Apache version 2.4.26 or higher needed for normal functionality (Apache version 2.4.17 only introduced HTTP/2 support, but there are security problems etc., read guides).

Only Nginx version is OK for HTTP/2 (1.9.5 or higher needed).

As of my experiments - enabling HTTP/2 on current VestaCP (with some fixes such above) didn't give any increase in productivity and site speed. Only additional problems, and «shiny green tick» on test sites.

Waiting for proper implementation of this great feature in newest versions of VestaCP. I didn't look the roadmap yet, hope it is in the short list already!

Cheers!
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: HTTP 2 Failing?
  • Quote

Post by skamasle » Sun Feb 25, 2018 12:19 pm

Vladimir Chanaev wrote: ↑
Sun Feb 25, 2018 11:22 am
benito wrote: ↑
Fri Feb 09, 2018 12:04 pm
Thank you for figuring this out!

Everything is working as expected now.
It's useless. HTTP/2 in latest VestaCP won't working normally anyway. You may get shiny green tick on the test sites, but I see no profit!

Apache2 needs additional HTTP/2 template too. Vesta don't have it, nor mod_http2 for Apache2 (check «sudo a2enmod http2»).
There is no proper version of Apache2 for HTTP/2 by default in VestaCP (check «sudo apache2 -v»). Apache version 2.4.26 or higher needed for normal functionality (Apache version 2.4.17 only introduced HTTP/2 support, but there are security problems etc., read guides).

Only Nginx version is OK for HTTP/2 (1.9.5 or higher needed).

As of my experiments - enabling HTTP/2 on current VestaCP (with some fixes such above) didn't give any increase in productivity and site speed. Only additional problems, and «shiny green tick» on test sites.

Waiting for proper implementation of this great feature in newest versions of VestaCP. I didn't look the roadmap yet, hope it is in the short list already!

Cheers!
HTTP2 works fine, in many cases you not need http2 in apache if nginx load all statics contents, js, css, img, so you get speed there loading all static content at once

In my case not see to much diference in sites loaded with apache2 + nginx http2 or apache2 http2 + nginx http2

You speed up your statics content with http2 and you win in most cases a lot of speed, so You will not see to many diferences if implement http2 in apache

You can see many orther system like plesk using the same metod enable http2

SSL is just implemented in nginx so apache cant work with http2 I think this is main reason, and of course you not see any performance in apache because you do too few request to it if nginx load all static, apache get just one or two request,
Top


Post Reply
  • Print view

6 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
 

 

Login  •  Register

I forgot my password