Page 1 of 1

http/2 support for nginx

Posted: Fri Mar 05, 2021 6:59 pm
by gkarea
I have created custome tlp and stlp (in /usr/local/vesta/data/templates/web/nginx/php-fpm/
) with including http2 (listen %ip%:%web_ssl_port% http2;). It's working with only https//domain.com.. But when I try to put only domain.com or www.domain.com in URL address bar, an unknown page is downloading instead of opening the page in browser... Any suggestion regarding this problem...?/

Re: http/2 support for nginx

Posted: Sat Mar 06, 2021 7:59 pm
by myVesta
dont add http2 to .tpl file, because .tpl is for plain text (unencrypted) http protocol (running on port 80).
and you can't run http2 on plain text http://

if you add http2 to .tpl, it will be considered as https, which means you don't have http

Re: http/2 support for nginx

Posted: Sat Mar 06, 2021 10:14 pm
by gkarea
Thanks