cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Yes, when I check with curl on one of my personal websites on a server using Nginx, I see this:

Code:
$ curl --head https://somedomain.com
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 24 Mar 2022 15:47:39 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
 

Scott Greczkows

Well-Known Member
Feb 5, 2004
72
2
158
If I out in

Code:
server {

listen 443 ssl http2;
listen [::]:443 ssl http2;

}
I get the message...

nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/http2.conf:3


nginx: [warn] protocol options redefined for 0.0.0.0:443 in /etc/nginx/conf.d/http2.conf:3


nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/http2.conf:4


nginx: [warn] protocol options redefined for [::]:443 in /etc/nginx/conf.d/http2.conf:4

Any ideas?
 

Scott Greczkows

Well-Known Member
Feb 5, 2004
72
2
158
I was under the impression from Cpanel Anthony that it was.


With that said while it reports that the conf entries are depreciated, it DOES work. But it would be nice to have the correct info to make the conf file up to date.

Thanks!