Nginx Http2Syntax
Use the separate http2 on directive instead of the deprecated http2 parameter on an Nginx listen directive.
Correct
listen 443 ssl;
http2 on;
Incorrect
listen 443 ssl http2;
Fix
Remove http2 from the listen directive and add http2 on; on a separate line.