Page 1 of 1

the "listen ... http2" directive is deprecated, use the "http2" directive instead in

Posted: Fri May 03, 2024 5:10 pm
by Zakopet
Today I have installed PHP 8.3 using this instruction viewtopic.php?f=18&t=52

And after that nginx can not restarted.

Command: sudo nginx -t
Returned for all websites on my server
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /home/user1/conf/web/site1.ru.nginx.ssl.conf:2
nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /home/user2/conf/web/site2.ru.nginx.ssl.conf:2

I have found the solution https://community.centminmod.com/thread ... ion.23890/

I have replaced:
listen 443 ssl http2;
To:
listen 443 ssl;
http2 on;

And after that server fixed and it is working now.

Re: the "listen ... http2" directive is deprecated, use the "http2" directive instead in

Posted: Fri May 03, 2024 6:02 pm
by Zakopet

Re: the "listen ... http2" directive is deprecated, use the "http2" directive instead in

Posted: Fri May 03, 2024 11:00 pm
by Zakopet
I think I should fix all templates inside "/usr/local/vesta/data/templates/web/nginx" folder?
Because after lets encrypt cert renewal the error will appear again.

Re: the "listen ... http2" directive is deprecated, use the "http2" directive instead in

Posted: Tue May 14, 2024 9:36 am
by Zakopet
The same problem with ssl inside node-app-3000.stpl
bad:
ssl on;
good:
listen %ip%:%proxy_ssl_port% ssl;

Re: the "listen ... http2" directive is deprecated, use the "http2" directive instead in

Posted: Thu May 16, 2024 12:17 pm
by myVesta