http/2 support for nginx

Post Reply
gkarea
Posts: 7
Joined: Mon Oct 12, 2020 12:26 pm

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...?/
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

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
gkarea
Posts: 7
Joined: Mon Oct 12, 2020 12:26 pm

Thanks
Post Reply